]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: Do not shutdown PHYs in READY state
authorFlorian Fainelli <f.fainelli@gmail.com>
Fri, 8 Oct 2021 21:42:52 +0000 (14:42 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 9 Oct 2021 12:47:37 +0000 (13:47 +0100)
commitdafd961a5c0c5e5b270b395c9502c1ae0d9d7d6a
tree47cd8823110a74ee2d3225ce30d56cbcf8d6f95e
parent0265fe46de15a7cc1b5b5b80bfdf9cc2660af53c
net: phy: Do not shutdown PHYs in READY state

In case a PHY device was probed thus in the PHY_READY state, but not
configured and with no network device attached yet, we should not be
trying to shut it down because it has been brought back into reset by
phy_device_reset() towards the end of phy_probe() and anyway we have not
configured the PHY yet.

Fixes: 7146a507d0e6 ("net: phy: add a shutdown procedure")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/phy_device.c