aboutsummaryrefslogtreecommitdiff
path: root/scripts/gcc-wrapper.py
diff options
context:
space:
mode:
authorAbhijeet Dharmapurikar <adharmap@codeaurora.org>2014-01-17 18:56:05 -0800
committerAbhijeet Dharmapurikar <adharmap@codeaurora.org>2014-01-29 10:58:16 -0800
commita6578b70db905ece898bc719ea717574ca6be6c9 (patch)
treec8ef45d65fd111366f28c0a3a9a9d068d2332691 /scripts/gcc-wrapper.py
parent0b48c3d7170d634ba55e83779e5d6b8f2d4ef0d8 (diff)
power: smb135x-charger: Handle IRQ race during suspend
After executing the device suspend handlers, the irq framework waits for any pending IRQ's to complete before proceeding further. In the current design if the SMB stat IRQ triggers after its suspend handler, the driver waits in the IRQ handler to avoid any further interrupts. This waiting leads to a deadlock where the irq framework waits for the interrupt to complete in its synchronize_irq() called via suspend_ device_irqs(). To avoid this scenario, disable the SMB stat IRQ if it triggers after suspend and return from the handler. Re-enable the IRQ in the resume handler. Explicitly call the stat IRQ handler before enabling the irq to make sure that the un-serviced IRQ is handled. CRs-Fixed: 601993 Change-Id: I44672d75609b45dd79e4bfc5c8a819b2e7d173ea Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
Diffstat (limited to 'scripts/gcc-wrapper.py')
0 files changed, 0 insertions, 0 deletions