usb: typec: Make bus switch code retimer-aware
authorPrashant Malani <pmalani@chromium.org>
Thu, 12 Jan 2023 22:16:08 +0000 (22:16 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 17 Jan 2023 16:29:00 +0000 (17:29 +0100)
commit6681e43f5095a64bc3e37822f64d91d284a062dc
treee05dcea5cf16ae3ed9b8644958cc32d57dabec4d
parent2c8cb236ed44d071ef2ed1fbb948eea404551788
usb: typec: Make bus switch code retimer-aware

Since ports can have retimers associated with them, update the Type-C
alternate mode bus code to also set retimer state when the switch state
is updated.

While we are here, make the typec_retimer_dev_type declaration in the
retimer.h file as extern, so that the header file can be successfully
included in the bus code without redeclaration compilation errors.

Signed-off-by: Prashant Malani <pmalani@chromium.org>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://lore.kernel.org/r/20230112221609.540754-4-pmalani@chromium.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/bus.c
drivers/usb/typec/retimer.h