[PATCH v15 00/11] phy: rockchip: usbdp: Clean up the mess (part 2)
From: Sebastian Reichel <hidden>
Date: 2026-09-15 15:06:20
Also in:
linux-arm-kernel, linux-rockchip, lkml
This series is the second part of a major overhaul of the Rockchip USBDP
driver. The goal of the bigger series is:
* USB-C DP AltMode support
* Fixing sporadic SErrors happening when connector is hot-plugged
* Fixing USB3 support when connector orientation changes after
hotplug
* Fixing USBDP PHY not starting up properly initially or after a few
replugs
To fix all of these the whole set is needed. As reviewers preferred to
get this in multiple series I've split it up. Technically its exactly
the same as the previous big series. Reordering/regrouping the patches
is not possible without basically starting from scratch. This second
batch contains a bunch of smaller fixes and cleanups as well as one of
the bigger problems listed above: It fixed the sporadic SErrors on
connector replug. Unfortuantely this also seems to increase the chance
of running into the PHY startup problem, which is fixed by the last
part.
This series depends on part 1 being applied.
Changes in v15:
- Link to v14: https://patch.msgid.link/20260813-rockchip-usbdp-cleanup-v14-0-b5ad9c68fa11@collabora.com
- rebased to v7.3-rc1
- group the next 11 patches into part 2, remaining patches will be send
in separate series depending on this one
- patches from this part are unchanged compared to v14
Signed-off-by: Sebastian Reichel <redacted>
---
Sebastian Reichel (11):
phy: rockchip: usbdp: Drop DP HPD handling
phy: rockchip: usbdp: Rename mode_change to phy_needs_reinit
phy: rockchip: usbdp: Re-init the PHY on orientation change
phy: rockchip: usbdp: Factor out lane_mux_sel setup
phy: rockchip: usbdp: Properly handle TYPEC_STATE_SAFE and TYPEC_STATE_USB
phy: rockchip: usbdp: Use guard functions for mutex
phy: rockchip: usbdp: Hold mutex in DP PHY configure
phy: rockchip: usbdp: Add some extra debug messages
phy: rockchip: usbdp: Avoid xHCI SErrors
phy: rockchip: usbdp: Handle rk_udphy_reset_deassert errors
phy: rockchip: usbdp: Only enable USB3 when not in high-speed mode
drivers/phy/rockchip/phy-rockchip-usbdp.c | 290 ++++++++++++++----------------
1 file changed, 132 insertions(+), 158 deletions(-)
---
base-commit: e5e04726cdd043e309677071ab1b65a4b18f422b
change-id: 20260914-rockchip-usbdp-cleanup-part2-07f5b1ac0a14
prerequisite-change-id: 20260203-rockchip-usbdp-cleanup-5b59dfb561a3:v15
prerequisite-patch-id: 27d601f203e30baebffc3486a1b787a2d280f5f7
prerequisite-patch-id: b42efbccabb13cd37252ea9bbc3873141bd5b8f8
prerequisite-patch-id: 8b416e19148a0b90c71778ff4fcc032b52ed49ce
prerequisite-patch-id: 04b986df824850902431339cdf43787d8036ac5c
prerequisite-patch-id: c0a6f7da1f986c76248c6271b0c04d8dab21e5cb
prerequisite-patch-id: 12bf844fd4a355c1860812522fdb16a1ff4232ea
prerequisite-patch-id: d71d6a6a232b59804f0775ba5c87d71bfdbbea61
prerequisite-patch-id: 301c705f92061ccb1a1923ec5d3bdc1fdceca24d
prerequisite-patch-id: 978560cb9620a16f57e14c424e8efa4ad7178747
prerequisite-patch-id: a6562299bf87dc57d4b14a8079d2b1e3fe407702
prerequisite-patch-id: 1b90e6acf41e9093636c3fe8791f46492b583520
prerequisite-patch-id: 60f32afe1f50ed33d48041b41e7ec8a5841d0ebd
prerequisite-patch-id: 8a9a01d462e581e6539bc9fd07b13e0f32933126
prerequisite-patch-id: fbcfbe4a42de5c488052e865bfd146260be738fb
prerequisite-patch-id: 7f3c3811dee1e11e0386ff2d8b4080f07bd68e88
prerequisite-patch-id: 831ca526a0099f3f7292f2060df9888bdf3055b4
Best regards,
--
Sebastian Reichel [off-list ref]
--
linux-phy mailing list
linux-phy@lists.infradead.org
https://lists.infradead.org/mailman/listinfo/linux-phy