From 4f8587023cffb56c8b5f9a5ee8f7edf43da3ec6a Mon Sep 17 00:00:00 2001 From: Zhang Yubing Date: Wed, 1 Dec 2021 21:27:10 +0800 Subject: [PATCH] phy: rockchip: usbdp: optimize the power on flow when we set mode change flag and the phy is idle, here will not clear the mode change flag when power on, we need clear it. Signed-off-by: Zhang Yubing Change-Id: I900d5c37a2e83212eb6461d714a653c93da923c7 --- drivers/phy/rockchip/phy-rockchip-usbdp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/phy/rockchip/phy-rockchip-usbdp.c b/drivers/phy/rockchip/phy-rockchip-usbdp.c index bd739f2761f7..8bd8423cd82c 100644 --- a/drivers/phy/rockchip/phy-rockchip-usbdp.c +++ b/drivers/phy/rockchip/phy-rockchip-usbdp.c @@ -689,6 +689,7 @@ static int udphy_power_on(struct rockchip_udphy *udphy, u8 mode) } if (udphy->status == UDPHY_MODE_NONE) { + udphy->mode_change = false; ret = udphy_setup(udphy); if (ret) return ret;