Skip to content

Commit dddb91c

Browse files
Heikki Krogerusgregkh
authored andcommitted
usb: typec: ucsi: Fix missing link removal
The link between the partner device and its USB Power Delivery instance was never removed which prevented the device from being released. Removing the link always when the partner is unregistered. Fixes: b04e174 ("usb: typec: ucsi: Register USB Power Delivery Capabilities") Cc: stable <[email protected]> Reported-by: Douglas Gilbert <[email protected]> Closes: https://lore.kernel.org/linux-usb/[email protected]/ Signed-off-by: Heikki Krogerus <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 89434b0 commit dddb91c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/usb/typec/ucsi/ucsi.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -787,6 +787,7 @@ static void ucsi_unregister_partner(struct ucsi_connector *con)
787787

788788
typec_set_mode(con->port, TYPEC_STATE_SAFE);
789789

790+
typec_partner_set_usb_power_delivery(con->partner, NULL);
790791
ucsi_unregister_partner_pdos(con);
791792
ucsi_unregister_altmodes(con, UCSI_RECIPIENT_SOP);
792793
typec_unregister_partner(con->partner);

0 commit comments

Comments
 (0)