drivers: thermal: bcl_pmic5: filter out BCL spurious interrupts
There is a chance that BCL interrupt can trigger with no level status
bit set. In such cases, BCL irq handler notifies the framework for
BCL thermal zone re-evaluation. This spurious interrupt notification
may lead to some unwanted race condition with previous valid
notification or passive worker thread re-evaluation.
Check interrupt status register prior to framework notification and
notify framework only if respective status bit for each level is set.
Pass BCL level thermal zone trip value while notifying to framework.
Change-Id: Icff4b86ea738d18f06252f66a54d67083bfd51a0
Signed-off-by:
Manaf Meethalavalappu Pallikunhi <manafm@codeaurora.org>
Loading
Please register or sign in to comment