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

From: Sebastian Reichel

Date: Fri Jul 03 2026 - 14:25:58 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 ca9418fab8f3..6eacbea6839a 100644
--- a/drivers/phy/rockchip/phy-rockchip-usbdp.c
+++ b/drivers/phy/rockchip/phy-rockchip-usbdp.c
@@ -1379,7 +1379,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