diff --git a/drivers/phy/rockchip/phy-rockchip-usbdp.c b/drivers/phy/rockchip/phy-rockchip-usbdp.c index 8bd8423cd82c..8ef1d15a4415 100644 --- a/drivers/phy/rockchip/phy-rockchip-usbdp.c +++ b/drivers/phy/rockchip/phy-rockchip-usbdp.c @@ -724,6 +724,9 @@ static int udphy_power_off(struct rockchip_udphy *udphy, u8 mode) return 0; } + if (!udphy->status) + return 0; + udphy->status &= ~mode; if (udphy->status == UDPHY_MODE_NONE) {