diff options
author | Nicholas Troast <ntroast@codeaurora.org> | 2017-06-02 14:45:39 -0700 |
---|---|---|
committer | Nicholas Troast <ntroast@codeaurora.org> | 2017-06-02 14:45:39 -0700 |
commit | dfe3d45c65305bb5e415668584ed20a21b815e14 (patch) | |
tree | a25080784da6f34970b42a53999f09e691945589 /drivers/power | |
parent | 28bf2d8b6bd153bb3a27ec871115d76f6a94b97e (diff) |
power: qcom: smb-lib: check for USB removal after legacy WA
If the USB Type-C cable is removed while the legacy workaround is
running the IRQ will be ignored and the removal will not be detected.
Check for USB Type-C removal by manually triggering the IRQ when the
legacy workaround finishes.
Change-Id: Ie2e399915da88a9d7fc480767e4fad8abf23024d
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
Diffstat (limited to 'drivers/power')
-rw-r--r-- | drivers/power/supply/qcom/smb-lib.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/power/supply/qcom/smb-lib.c b/drivers/power/supply/qcom/smb-lib.c index 7848ca4396d9..20ea41e7d250 100644 --- a/drivers/power/supply/qcom/smb-lib.c +++ b/drivers/power/supply/qcom/smb-lib.c @@ -4228,6 +4228,7 @@ static void smblib_legacy_detection_work(struct work_struct *work) unlock: chg->typec_en_dis_active = 0; + smblib_usb_typec_change(chg); mutex_unlock(&chg->lock); } |