diff options
author | Prashant Malani <pmalani@chromium.org> | 2022-02-08 19:47:24 +0100 |
---|---|---|
committer | Prashant Malani <pmalani@chromium.org> | 2022-02-15 20:50:30 +0100 |
commit | b579f139e47037cf98808ccf7511a6deb02f3b18 (patch) | |
tree | 01ddc89efd11ef8f4b8fca129d94050c57908151 /drivers | |
parent | platform/chrome: cros_ec_typec: Configure muxes at start of port update (diff) | |
download | linux-b579f139e47037cf98808ccf7511a6deb02f3b18.tar.xz linux-b579f139e47037cf98808ccf7511a6deb02f3b18.zip |
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/
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/platform/chrome/cros_ec_typec.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/platform/chrome/cros_ec_typec.c b/drivers/platform/chrome/cros_ec_typec.c index 3019e29f200d..4bd2752c0823 100644 --- a/drivers/platform/chrome/cros_ec_typec.c +++ b/drivers/platform/chrome/cros_ec_typec.c @@ -228,6 +228,7 @@ static void cros_typec_remove_partner(struct cros_typec_data *typec, cros_typec_unregister_altmodes(typec, port_num, true); cros_typec_usb_disconnect_state(port); + port->mux_flags = USB_PD_MUX_NONE; typec_unregister_partner(port->partner); port->partner = NULL; |