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

Commit 1d922e2f 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 29205bed 42372dab
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -3484,6 +3484,7 @@ static void handle_disconnect(struct usbpd *pd)
	pd->forced_pr = 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);