]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: Fix not to call phy_resume() if PHY is not attached
authorYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Wed, 28 Nov 2018 09:02:41 +0000 (09:02 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 3 Dec 2018 23:20:18 +0000 (15:20 -0800)
commitf15e0d26c93b44eb9d6c9c2eca017c508d97b140
tree2bfe0bea02406e531a9f281c156a33f99d21ebc8
parentbd7d5a153de325cdf83a8b9133c4ed5dc84edb18
net: phy: Fix not to call phy_resume() if PHY is not attached

This patch fixes an issue that mdio_bus_phy_resume() doesn't call
phy_resume() if the PHY is not attached.

Fixes: 76dcd2ee4473 ("net: phy: avoid suspending twice a PHY")
Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/phy_device.c