davinci: cp_intc: provide set_wake function
authorSekhar Nori <nsekhar@ti.com>
Mon, 16 Nov 2009 11:51:30 +0000 (17:21 +0530)
committerKevin Hilman <khilman@deeprootsystems.com>
Wed, 6 Jan 2010 16:57:44 +0000 (08:57 -0800)
commit2d3f595016f982294c1669ee87aa91179d88502b
treec3cc878c31abc541c27146d271abe24c8d0d9f55
parent077639f443294a25b16e4040ca06a1611700a4ae
davinci: cp_intc: provide set_wake function

There is nothing special to be done for interrupts
which can wakeup the device from sleep on CP-INTC,
but not having a set_wake implemented prevents use
of common drivers which expect this function to be
implemented for all wakeup interrupt sources.

This patch fixes the issue encountered when using the
omap-rtc driver on DA850. On DA850 the RTC alarm
interrupt is used to wake up the SoC from deep sleep
mode. Without this patch, the disable_irq_wake throws
an unbalanced wake disable warning while resuming
because the previous enable call fails for lack of
set_wake implementation.

Signed-off-by: Sekhar Nori <nsekhar@ti.com>
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
arch/arm/mach-davinci/cp_intc.c