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 <firstname.lastname@example.org>
Reviewed-by: Alexandre Belloni <email@example.com>
Acked-by: Nicolas Ferre <firstname.lastname@example.org>
Acked-by: Mark Rutland <email@example.com>
Signed-off-by: Rafael J. Wysocki <firstname.lastname@example.org>
1 file changed