mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-07 12:25:00 -04:00
smb5: handle cc pin floated cable removal
When use the CC pin floated USB cable to connect to PC or charger, typec mode cannot be detected, so it cannot use the typec removal when USB cable is removed. Since this USB cable make the device function as micro usb, so just call the micro usb removal. Change-Id: I6cf9fbcffa1fe05bade64dfce9309977e782eba4 Signed-off-by: Yonghua Yan <yanyh2@motorola.com> Reviewed-on: https://gerrit.mot.com/1390306 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Jianqi Yang <yangj@motorola.com> Submit-Approved: Jira Key Reviewed-on: https://gerrit.mot.com/1770289 Reviewed-by: Huosheng Liao <liaohs@motorola.com>
This commit is contained in:
parent
a8e77d8c58
commit
89ecc01a29
1 changed files with 2 additions and 1 deletions
|
|
@ -5780,7 +5780,8 @@ static void smblib_usb_plugin_locked(struct smb_charger *chg)
|
|||
smblib_update_usb_type(chg);
|
||||
}
|
||||
|
||||
if (chg->connector_type == QTI_POWER_SUPPLY_CONNECTOR_MICRO_USB)
|
||||
if (chg->connector_type == QTI_POWER_SUPPLY_CONNECTOR_MICRO_USB ||
|
||||
chg->typec_mode == QTI_POWER_SUPPLY_TYPEC_NONE)
|
||||
smblib_micro_usb_plugin(chg, vbus_rising);
|
||||
|
||||
vote(chg->temp_change_irq_disable_votable, DEFAULT_VOTER,
|
||||
|
|
|
|||
Loading…
Reference in a new issue