From 0c820d56b98596642a40dad429cdb9da7cb5002a Mon Sep 17 00:00:00 2001 From: Zhang Yubing Date: Thu, 17 Mar 2022 11:30:01 +0800 Subject: [PATCH] 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 Change-Id: I92075e729e637078456ae67897dfb1cbda5da1cb --- drivers/phy/rockchip/phy-rockchip-usbdp.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/phy/rockchip/phy-rockchip-usbdp.c b/drivers/phy/rockchip/phy-rockchip-usbdp.c index d5381c30680a..404f77bc34f6 100644 --- a/drivers/phy/rockchip/phy-rockchip-usbdp.c +++ b/drivers/phy/rockchip/phy-rockchip-usbdp.c @@ -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; }