Skip to content

Commit b579f13

Browse files
author
Prashant Malani
committed
platform/chrome: cros_ec_typec: Update mux flags during partner removal
In cros_typec_remove_partner(), we call cros_typec_usb_disconnect_state() which sets the switches/muxes to be in a disconnected state. This also happens in cros_typec_configure_mux(). However, unlike there, here the mux_flags variable hasn't been updated to reflect that a disconnection has occurred. Update the flag here accordingly. Signed-off-by: Prashant Malani <pmalani@chromium.org> Reviewed-by: Tzung-Bi Shih <tzungbi@google.com> Link: https://lore.kernel.org/chrome-platform/20220208184721.1697194-5-pmalani@chromium.org/
1 parent af34f11 commit b579f13

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/platform/chrome/cros_ec_typec.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,7 @@ static void cros_typec_remove_partner(struct cros_typec_data *typec,
228228
cros_typec_unregister_altmodes(typec, port_num, true);
229229

230230
cros_typec_usb_disconnect_state(port);
231+
port->mux_flags = USB_PD_MUX_NONE;
231232

232233
typec_unregister_partner(port->partner);
233234
port->partner = NULL;

0 commit comments

Comments
 (0)