phy: rockchip: usbdp: wait aux channel ready when dp phy power on

If dp send data by aux channel too fast after phy power on,
the aux may be not ready which will cause aux error. Adding
delay to avoid this issue.

Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
Change-Id: I92075e729e637078456ae67897dfb1cbda5da1cb
This commit is contained in:
Zhang Yubing
2022-03-17 11:30:01 +08:00
committed by Tao Huang
parent aa228e28b6
commit 0c820d56b9

View File

@@ -897,6 +897,12 @@ static int rockchip_dp_phy_power_on(struct phy *phy)
unlock:
mutex_unlock(&udphy->mutex);
/*
* If data send by aux channel too fast after phy power on,
* the aux may be not ready which will cause aux error. Adding
* delay to avoid this issue.
*/
usleep_range(10000, 11000);
return ret;
}