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:Fenglin Wu <fenglinw@codeaurora.org> Signed-off-by:
Ashay Jaiswal <ashayj@codeaurora.org>
Loading
Please register or sign in to comment