mirror of
https://github.com/LineageOS/android_kernel_fxtec_sm6115.git
synced 2026-04-03 00:53:16 +00:00
If there is unbalanced refcount for any interrupt, irq_stat_mask does not get clear during suspend. On resume, enable irq is not called leading to ctrl ISR permanently disabled. This is a defensive check to recover from such scenario. Change-Id: If78a1be5286f9b6e7ca5241cb5c980e60da00a48 Signed-off-by: daiss1 <daiss1@lenovo.com> Reviewed-on: https://gerrit.mot.com/2088247 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Guobin Zhang <zhanggb@motorola.com> Submit-Approved: Jira Key