platform/chrome: cros_ec_typec: Update mux flags during partner removal
authorPrashant Malani <pmalani@chromium.org>
Tue, 8 Feb 2022 18:47:24 +0000 (18:47 +0000)
committerPrashant Malani <pmalani@chromium.org>
Tue, 15 Feb 2022 19:50:30 +0000 (19:50 +0000)
commitb579f139e47037cf98808ccf7511a6deb02f3b18
tree01ddc89efd11ef8f4b8fca129d94050c57908151
parentaf34f115b3b74cf70d8842c436374b08feada143
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/
drivers/platform/chrome/cros_ec_typec.c