Merge "usb: pd: Reset pd protocol during cable disconnect"

This commit is contained in:
qctecmdr 2021-12-03 04:17:05 -08:00 • committed by Gerrit - the friendly Code Review server
commit f51f324009

View file

@ -3509,6 +3509,7 @@ static void handle_disconnect(struct usbpd *pd)
pd->forced_pr = QTI_POWER_SUPPLY_TYPEC_PR_NONE;
pd->current_state = PE_UNKNOWN;
pd_reset_protocol(pd);
kobject_uevent(&pd->dev.kobj, KOBJ_CHANGE);
typec_unregister_partner(pd->partner);