Re: [PATCH v18 7/7] phy: rockchip: usbdp: Add DP lane setup to power state update
From: Manivannan Sadhasivam
Date: Fri Nov 27 2026 - 05:49:47 EST
On 2026-11-19 20:40 +0100, Sebastian Reichel wrote:
> DP lane map and AUX orientation are only configured in the DP PHY
> power_on callback right now. This means when the DP controller keeps
> the display enabled after a cable is unplugged, it will not come back
> properly with the cable re-plugged in swapped orientation.
>
> To fix the issue, we update the DP lane mux configuration in the power
> state update. This gets some special handling, because calling
> rk_udphy_dp_lane_select() accesses the VOGRF which needs the DP
> controller's power domain enabled. It is active while the DP controller
> has the PHY powered on.
>
> Apart from that VOGRF may lose its state when the DP controller is
> disabled, so we keep the DP PHY power hook as-is instead of fully
> relying on the power state update function.
>
> Reported-by: Yury Smirnov <yurymonzon@xxxxxxxxx>
> Signed-off-by: Sebastian Reichel <sebastian.reichel@xxxxxxxxxxxxx>
Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@xxxxxxxxxxxxxxxx>
- Mani