Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit ba1ff32d authored by Fenglin Wu's avatar Fenglin Wu Committed by Gerrit - the friendly Code Review server
Browse files

power: smb1360: Check the IRQ status before disabling it



There is a chance that the disable_irq_nosync() function in
smb1360_stat_handler() being called multiply times continuously, it
causes the enable_irq() in resume() function won't be able to take the
IRQ back to enable status, and the IRQ will be disabled forever.

Check the IRQ status before disabling it to make sure the balance
enable_irq()/disable_irq() being called.

CRs-Fixed: 817073
Change-Id: I29edcc34f29b93c5656f72f03b3269845aa8c134
Signed-off-by: default avatarFenglin Wu <fenglinw@codeaurora.org>
Signed-off-by: default avatarAshay Jaiswal <ashayj@codeaurora.org>
parent 5d08c709
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment