https://github.com/torvalds/linux
Revision 603b1a232604dcd19a28eaddf70eee9fbe3edc88 authored by Boris BREZILLON on 02 March 2015, 09:18:14 UTC, committed by Rafael J. Wysocki on 04 March 2015, 21:10:59 UTC
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 <boris.brezillon@free-electrons.com>
Reviewed-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Acked-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent 432ec92
History
Tip revision: 603b1a232604dcd19a28eaddf70eee9fbe3edc88 authored by Boris BREZILLON on 02 March 2015, 09:18:14 UTC
rtc: at91sam9: rework wakeup and interrupt handling
Tip revision: 603b1a2

back to top