]> Pileus Git - ~andy/linux/commit
mfd: arizona: Disable interrupts during resume
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Sun, 27 Jan 2013 04:07:32 +0000 (12:07 +0800)
committerSamuel Ortiz <sameo@linux.intel.com>
Wed, 13 Feb 2013 23:22:47 +0000 (00:22 +0100)
commitdc781d0e10fca29123ddde45429d777725c0fde5
tree8c4d350002cb2427e3495eb1c746802748e34a9d
parent595e5bf75cea0664eeb63d8df20716f66f4aa459
mfd: arizona: Disable interrupts during resume

Runtime power management does not function during system suspend but the
Arizona devices need to use runtime power management to power up the device
in order to handle interrupts. Try to avoid interrupts firing during
resume by disabling the primary IRQ before interrupts are reenabled on
resume and only reenabling it again during main resume.

The goal is to avoid issues in the situation where an interrupt is asserted
during resume (eg, due to it being the wake source) and the interrupt
handling gets scheduled prior to the device being able to handle runtime
PM.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/arizona-core.c