From 4d554aeb46560f4577162695e4f48e1a4ec6c835 Mon Sep 17 00:00:00 2001 From: Portisch Date: Tue, 5 Mar 2019 13:10:12 +0100 Subject: [PATCH] phy_device: fix: do not check for suspend on resume Only check if the device was sent to suspend before. --- drivers/net/phy/phy_device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/phy/phy_device.c b/drivers/net/phy/phy_device.c index 2bca9554752f..ec88e000fe4f 100644 --- a/drivers/net/phy/phy_device.c +++ b/drivers/net/phy/phy_device.c @@ -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);