mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 18:41:58 +09:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user