power: smb5-lib: Check Type-C attached status in moisture detection
Currently, lpd_ra_open_work is used for liquid presence detection and
to mitigate interrupt TYPEC_OR_RID_DETECTION_CHANGE_IRQ storm on
floating cable. This is applicable only for Type-C non-attached state
and hence it should be cancelled for other states.
Check TYPEC_TCCDEBOUNCE_DONE_STATUS_BIT to determine Type-C
attached status to fix this.
Also remove checking for TYPEC_WATER_DETECTION_STATUS_BIT
in typec_or_rid_detection_change interrupt handler as it is always set
when that interrupt fires.
Change-Id: I4477e0684f823335eda8cc7b471c3de50bee7b78
Signed-off-by:
Harry Yang <harryy@codeaurora.org>
Loading
Please register or sign in to comment