diff --git a/drivers/phy/rockchip/phy-rockchip-inno-usb2.c b/drivers/phy/rockchip/phy-rockchip-inno-usb2.c index 95942d4c3ace..022d17874b04 100644 --- a/drivers/phy/rockchip/phy-rockchip-inno-usb2.c +++ b/drivers/phy/rockchip/phy-rockchip-inno-usb2.c @@ -743,7 +743,8 @@ static int rockchip_usb2phy_exit(struct phy *phy) if (rport->port_id == USB2PHY_PORT_HOST) cancel_delayed_work_sync(&rport->sm_work); - else if (rport->port_id == USB2PHY_PORT_OTG) + else if (rport->port_id == USB2PHY_PORT_OTG && + rport->bvalid_irq > 0) flush_delayed_work(&rport->otg_sm_work); return 0;