phy_device: fix: do not check for suspend on resume Only check if the device was...
authorPortisch <hugo.portisch@yahoo.de>
Tue, 5 Mar 2019 12:10:12 +0000 (13:10 +0100)
committerNick Xie <nick@khadas.com>
Fri, 12 Jul 2019 05:35:46 +0000 (13:35 +0800)
drivers/net/phy/phy_device.c

index 2bca955..ec88e00 100644 (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);