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:
Portisch
2019-03-05 13:10:12 +01:00
committed by Dongjin Kim
parent 99903b4df9
commit 4d554aeb46

View File

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