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 <yangbin@rock-chips.com>
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
This commit is contained in:
Bin Yang
2021-05-27 20:34:37 +08:00
committed by Frank Wang
parent 40d5086cb9
commit 54c3040ede

View File

@@ -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);