Skip to content
/ linux Public
forked from torvalds/linux

Commit

Permalink
drivers: phy: rockchip: Fix the suspend problem caused by the driver (t…
Browse files Browse the repository at this point in the history
…orvalds#159)

u2phy0_host linestate irq state has been cleared before,
no need to clear it again.

Signed-off-by: Feng Zhang <feng@radxa.com>
  • Loading branch information
vamrs-feng authored Jul 19, 2023
1 parent 2daa11b commit 879e139
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/phy/rockchip/phy-rockchip-inno-usb2.c
Original file line number Diff line number Diff line change
Expand Up @@ -3025,7 +3025,8 @@ static int rockchip_usb2phy_pm_suspend(struct device *dev)

/* activate the linestate to detect the next interrupt. */
mutex_lock(&rport->mutex);
ret = rockchip_usb2phy_enable_line_irq(rphy, rport, true);
if (rport->port_id == USB2PHY_PORT_OTG)
ret = rockchip_usb2phy_enable_line_irq(rphy, rport, true);
mutex_unlock(&rport->mutex);
if (ret) {
dev_err(rphy->dev, "failed to enable linestate irq\n");
Expand Down

0 comments on commit 879e139

Please sign in to comment.