diff options
author | Oleksij Rempel <o.rempel@pengutronix.de> | 2021-06-07 10:27:26 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-06-07 22:23:02 +0200 |
commit | 06edf1a940be0633499e2feea31d380375a22bd9 (patch) | |
tree | 532401bb277d3a480f3d176968af88381564d0ec /drivers/net/phy/phy.c | |
parent | net: usb: asix: add error handling for asix_mdio_* functions (diff) | |
download | linux-06edf1a940be0633499e2feea31d380375a22bd9.tar.xz linux-06edf1a940be0633499e2feea31d380375a22bd9.zip |
net: phy: do not print dump stack if device was removed
In case phy_state_machine() works on top of USB device, we can get -ENODEV
at any point. So, be less noisy if device was removed.
Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/phy/phy.c')
-rw-r--r-- | drivers/net/phy/phy.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/phy/phy.c b/drivers/net/phy/phy.c index 1f0512e39c65..1089a93d12f6 100644 --- a/drivers/net/phy/phy.c +++ b/drivers/net/phy/phy.c @@ -1136,6 +1136,9 @@ void phy_state_machine(struct work_struct *work) else if (do_suspend) phy_suspend(phydev); + if (err == -ENODEV) + return; + if (err < 0) phy_error(phydev); |