From 54c3040edefb29303fb0af2127477be5256acb68 Mon Sep 17 00:00:00 2001 From: Bin Yang Date: Thu, 27 May 2021 20:34:37 +0800 Subject: [PATCH] phy: rockchip: inno-usb2: fix iddig issues for rk3568 RK3568 u2phy used shared interrupt and do not used id irq. Change-Id: I341cc0edb0f74996f159c095545465673cc2a990 Signed-off-by: Bin Yang Signed-off-by: Frank Wang --- drivers/phy/rockchip/phy-rockchip-inno-usb2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/phy/rockchip/phy-rockchip-inno-usb2.c b/drivers/phy/rockchip/phy-rockchip-inno-usb2.c index 133cf47c59ac..342439b1a690 100644 --- a/drivers/phy/rockchip/phy-rockchip-inno-usb2.c +++ b/drivers/phy/rockchip/phy-rockchip-inno-usb2.c @@ -2304,7 +2304,7 @@ static int rockchip_usb2phy_pm_suspend(struct device *dev) continue; if (rport->port_id == USB2PHY_PORT_OTG && - rport->id_irq > 0) { + (rport->id_irq > 0 || rphy->irq > 0)) { mutex_lock(&rport->mutex); rport->prev_iddig = property_enabled(rphy->grf, &rport->port_cfg->utmi_iddig); @@ -2362,7 +2362,7 @@ static int rockchip_usb2phy_pm_resume(struct device *dev) continue; if (rport->port_id == USB2PHY_PORT_OTG && - rport->id_irq > 0) { + (rport->id_irq > 0 || rphy->irq > 0)) { mutex_lock(&rport->mutex); iddig = property_enabled(rphy->grf, &rport->port_cfg->utmi_iddig);