[PATCH v17 0/7] phy: rockchip: usbdp: Fix runtime muxing between USB3 and DP

From: Sebastian Reichel

Date: Fri Nov 13 2026 - 21:01:51 EST


This (final) cleanup part depends on new DWC3 glue driver series:

https://lore.kernel.org/linux-phy/20261114-b4-rockchip-dwc3-rockchip-glue-v19-0-b79fb5f4b42a@xxxxxxxxxxxxx/

Changes in v17:
- Link to v16: https://patch.msgid.link/20260930-b4-rockchip-usbdp-cleanup-part3-v16-0-bc144f80afc4@xxxxxxxxxxxxx
- Rebase to v7.4-rc1 and v19 of the glue driver series. This drops
the first patch, as the PHY reset notifier has been replaced by
direct calls added in the glue series, which now also introduces
sw_mode.
- Add one more patch to gracefully handle DP lane remuxing after cable
orientation change when the DP controller kept the display output (and
thus PHY) enabled even with HPD=0. This can apparently happen with
some DRM compositors.

Changes in v16:
- Link to v15: https://patch.msgid.link/20260915-b4-rockchip-usbdp-cleanup-part3-v15-0-9ad90a456953@xxxxxxxxxxxxx
- Split out "Disable USB3 port during normal power-on" from first patch
- Collect R-b tags from Mani

Changes in v15:
- Link to v14: https://patch.msgid.link/20260813-rockchip-usbdp-cleanup-v14-0-b5ad9c68fa11@xxxxxxxxxxxxx
- Split the series, no patch changes in this part

Signed-off-by: Sebastian Reichel <sebastian.reichel@xxxxxxxxxxxxx>
---
Sebastian Reichel (7):
phy: rockchip: usbdp: Disable USB3 port during normal power-on
phy: rockchip: usbdp: Drop -EPROBE_DEFER hack
phy: rockchip: usbdp: Rename mode to hw_mode
phy: rockchip: usbdp: Fix power state handling
phy: rockchip: usbdp: Re-init PHY on mux change
phy: rockchip: usbdp: Add USB-C state without DP enabled
phy: rockchip: usbdp: Add DP lane setup to power state update

drivers/phy/rockchip/phy-rockchip-usbdp.c | 223 +++++++++++++++++-------------
1 file changed, 125 insertions(+), 98 deletions(-)
---
base-commit: bc71431221f5ba8bb33918399552636e059c2c45
change-id: 20260914-b4-rockchip-usbdp-cleanup-part3-cca70383ebe3
prerequisite-message-id: 20261114-b4-rockchip-dwc3-rockchip-glue-v19-0-b79fb5f4b42a@xxxxxxxxxxxxx
prerequisite-patch-id: 4fa3aae8ccfa5383522070179c8777302411082c
prerequisite-patch-id: 0cfab94fd67b6304cd303a9810981aaca328c651
prerequisite-patch-id: c2e1c453454a7589a691fe391dc79e86f09ca7b7
prerequisite-patch-id: dadeaf9e369e04d8b3329493a1a0756ddd6140f0
prerequisite-patch-id: 2c727b8400980c760ca8f1e5fd989a3bf9404020
prerequisite-patch-id: cf4e7d51c77a5eccda6c687730eddd3135d94d91

Best regards,
--
Sebastian Reichel <sebastian.reichel@xxxxxxxxxxxxx>