clk: at91: implement suspend/resume for the PMC irqchip
authorBoris BREZILLON <[email protected]>
Mon, 2 Mar 2015 09:18:16 +0000 (10:18 +0100)
committerRafael J. Wysocki <[email protected]>
Wed, 4 Mar 2015 21:11:17 +0000 (22:11 +0100)
commit947f5b108543a6521728466ad5be6e2c4a35a65b
tree665dbee07a0119c909d183f15ca48362910c518e
parentdd1f1f391dd7f3a39a3983df2ca076871111cec9
clk: at91: implement suspend/resume for the PMC irqchip

The irq line used by the PMC block is shared with several peripherals
including the init timer which is registering its handler with
IRQF_NO_SUSPEND.

Implement the appropriate suspend/resume callback for the PMC irqchip,
and inform irq core that PMC irq handler can be safely called while
the system is suspended by setting IRQF_COND_SUSPEND.

Signed-off-by: Boris Brezillon <[email protected]>
Reviewed-by: Alexandre Belloni <[email protected]>
Acked-by: Nicolas Ferre <[email protected]>
Acked-by: Mark Rutland <[email protected]>
Signed-off-by: Rafael J. Wysocki <[email protected]>
drivers/clk/at91/pmc.c
drivers/clk/at91/pmc.h