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

Commit f51f3240 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

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

parents fdc7322f 3ab9b932
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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);