mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-10 04:48:04 +09:00
phy_device: fix: do not check for suspend on resume Only check if the device was sent to suspend before.
This commit is contained in:
@@ -136,7 +136,7 @@ static int mdio_bus_phy_resume(struct device *dev)
|
||||
struct phy_device *phydev = to_phy_device(dev);
|
||||
int ret;
|
||||
|
||||
if (!mdio_bus_phy_may_suspend(phydev))
|
||||
if (!phydev->suspended)
|
||||
goto no_resume;
|
||||
|
||||
ret = phy_resume(phydev);
|
||||
|
||||
Reference in New Issue
Block a user