[PATCH v11 35/36] phy: rockchip: usbdp: Re-init PHY on mux change

From: Sebastian Reichel

Date: Thu Jul 09 2026 - 15:07:53 EST


Ensure that the right part of the PHY are powered up when the
mode changes. This ensures the PHY is re-initialized in the
following two scenarios, which are currently broken:

- cable orientation changes without DP being involved
- switching from DP-only into a mode with USB support

Fixes: 2f70bbddeb45 ("phy: rockchip: add usbdp combo phy driver")
Signed-off-by: Sebastian Reichel <sebastian.reichel@xxxxxxxxxxxxx>
---
drivers/phy/rockchip/phy-rockchip-usbdp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/phy/rockchip/phy-rockchip-usbdp.c b/drivers/phy/rockchip/phy-rockchip-usbdp.c
index c5ad300620a6..ecf0ed0139f6 100644
--- a/drivers/phy/rockchip/phy-rockchip-usbdp.c
+++ b/drivers/phy/rockchip/phy-rockchip-usbdp.c
@@ -1383,7 +1383,7 @@ static int rk_udphy_typec_mux_set(struct typec_mux_dev *mux,

rk_udphy_set_typec_state(udphy, state->mode);

- return 0;
+ return rk_udphy_update_power_state(udphy);
}

static void rk_udphy_typec_mux_unregister(void *data)

--
2.53.0