[PATCH 0/2] usb: typec: mux: avoid duplicated mux switches
Sebastian Reichel
sebastian.reichel at collabora.com
Fri Feb 13 11:23:27 PST 2026
Recent Rockchip SoCs (e.g. RK3588, RK3576) have a PHY, which
handles USB3 and DisplayPort as well as orientation and lane
muxing. By setting up the DT graph from the USB-C connector
for the Superspeed and DP lanes to the PHY all mux/orientation
operations are applied twice.
I did not add any Fixes tag, since applying the settings twice
is not breaking anything. But it's confusing when debugging
USB-C issues and obviously wastes some CPU cycles.
Also I'm not super happy with the implementation I came up with
to do the actual duplicate elimination. In the end I figured
it does not matter to much considering the array size is 3 and
is not expected to become much bigger as the amount of muxes
on a single USB-C connector should be quite low :)
Signed-off-by: Sebastian Reichel <sebastian.reichel at collabora.com>
---
Sebastian Reichel (2):
usb: typec: mux: avoid duplicated orientation switches
usb: typec: mux: avoid duplicated mux switches
drivers/usb/typec/mux.c | 28 ++++++++++++++++++++++++++--
1 file changed, 26 insertions(+), 2 deletions(-)
---
base-commit: 05f7e89ab9731565d8a62e3b5d1ec206485eeb0b
change-id: 20260213-typec-mux-duplication-fix-ba5e58f6576a
Best regards,
--
Sebastian Reichel <sebastian.reichel at collabora.com>
More information about the Linux-rockchip
mailing list