From: Boris BREZILLON Date: Mon, 2 Mar 2015 09:18:15 +0000 (+0100) Subject: rtc: at91rm9200: rework wakeup and interrupt handling X-Git-Tag: omap-for-v4.1/wl12xx-dt~58^2~2^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dd1f1f391dd7f3a39a3983df2ca076871111cec9;p=pandora-kernel.git rtc: at91rm9200: rework wakeup and interrupt handling The IRQ line used by the RTC device is usually shared with the system timer (PIT) on at91 platforms. Since timers are registering their handlers with IRQF_NO_SUSPEND, we should expect being called in suspended state, and properly wake the system up when this is the case. Set IRQF_COND_SUSPEND flag when registering the IRQ handler to inform irq core that it can safely be called while the system is suspended. Signed-off-by: Boris Brezillon Reviewed-by: Alexandre Belloni Acked-by: Nicolas Ferre Acked-by: Mark Rutland Signed-off-by: Rafael J. Wysocki --- Reading git-diff-tree failed