]> git.baikalelectronics.ru Git - kernel.git/commit
irqchip/gic-pm: Fix suspend handling
authorSameer Pujar <spujar@nvidia.com>
Fri, 22 Mar 2019 12:13:05 +0000 (17:43 +0530)
committerMarc Zyngier <marc.zyngier@arm.com>
Mon, 29 Apr 2019 14:45:01 +0000 (15:45 +0100)
commit8429f0c072e781a7709f65603ee8d0b65e25119d
tree1236ecd5355be46c57e052197867bd08bb77fa74
parent7649665ef8880cda66837d59ad23b1c1274c0c5e
irqchip/gic-pm: Fix suspend handling

If interrupts are enabled for a non-root GIC device that uses the
gic-pm driver, when system suspend occurs, the current interrupt
state is not saved and restored correctly and so interrupts do not
work again on resuming the system. Add a late suspend handler to
save and restore the state for these devices.

Suggested-by: Jonathan Hunter <jonathanh@nvidia.com>
Signed-off-by: Sameer Pujar <spujar@nvidia.com>
Reviewed-by: Jon Hunter <jonathanh@nvidia.com>
Tested-by: Jon Hunter <jonathanh@nvidia.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
drivers/irqchip/irq-gic-pm.c