diff options
author | Abhijeet Dharmapurikar <adharmap@codeaurora.org> | 2016-10-12 21:46:29 -0700 |
---|---|---|
committer | Abhijeet Dharmapurikar <adharmap@codeaurora.org> | 2016-10-17 11:54:16 -0700 |
commit | 04519c9566fdba0027b887c81bcb164d75de8e77 (patch) | |
tree | 947912368e5f7016fad1e8a2375651f795ff0ab2 | |
parent | 2b9dbcf6f47597d21d8c7d339b0b5f903da423ff (diff) |
smb-lib: fix type not updating to Unknown after removal
There is a possibility where the driver fails to change
the usb type to Unknown when the cable is removed - in particular
when pd is not allowed.
Use the debounce done event of the typec change interrupt to update
the usb type to Unknown.
Change-Id: I7f201209101e54461e3d08d677bd7b266f971420
Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
-rw-r--r-- | drivers/power/qcom-charger/smb-lib.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/power/qcom-charger/smb-lib.c b/drivers/power/qcom-charger/smb-lib.c index 042a616e0c69..c719773fae30 100644 --- a/drivers/power/qcom-charger/smb-lib.c +++ b/drivers/power/qcom-charger/smb-lib.c @@ -2412,6 +2412,8 @@ static void smblib_handle_typec_removal(struct smb_charger *chg) vote(chg->apsd_disable_votable, PD_HARD_RESET_VOTER, false, 0); typec_source_removal(chg); + + smblib_update_usb_type(chg); } static void smblib_handle_typec_insertion(struct smb_charger *chg, |