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

Skip to content
Commit 9c83a371 authored by Harry Yang's avatar Harry Yang
Browse files

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: default avatarHarry Yang <harryy@codeaurora.org>
parent 4719c01d
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