usb: typec: Add retimer handle to port altmode
authorPrashant Malani <pmalani@chromium.org>
Thu, 12 Jan 2023 22:16:06 +0000 (22:16 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 17 Jan 2023 16:29:00 +0000 (17:29 +0100)
commit2476de8288cc552cbe98edf3f4d4cc2846cf4b8c
tree7744c4d1e4c6657757d1d028b04eb37643fdbb4c
parenta30951d31b250bf3479c00e93646b6cc6fb42a56
usb: typec: Add retimer handle to port altmode

Just like it does with muxes, the Type-C bus code can update the state
of connected retimers (especially when altmode-related transitions
occur). Add a retimer handle to the port altmode struct to enable this.

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-2-pmalani@chromium.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/bus.h
drivers/usb/typec/class.c