diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2020-12-17 16:47:00 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2021-01-31 22:21:04 +0000 |
commit | 0bf93ec5e0e9269a76db194825004525559c78d2 (patch) | |
tree | 508290ce9ca0fe06e419a92c54d349670af742f6 | |
parent | 3632610d38316bca9b0cd9d649ce3cefab58520a (diff) |
HAX net/phy: Suppress WARN for calling stop while halted
Closes: https://gitlab.freedesktop.org/drm/intel/-/issues/2805
-rw-r--r-- | drivers/net/phy/phy.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/net/phy/phy.c b/drivers/net/phy/phy.c index 45f75533c47c..95088083ba11 100644 --- a/drivers/net/phy/phy.c +++ b/drivers/net/phy/phy.c @@ -1005,11 +1005,8 @@ void phy_stop(struct phy_device *phydev) { struct net_device *dev = phydev->attached_dev; - if (!phy_is_started(phydev) && phydev->state != PHY_DOWN) { - WARN(1, "called from state %s\n", - phy_state_to_str(phydev->state)); + if (!phy_is_started(phydev) && phydev->state != PHY_DOWN) return; - } mutex_lock(&phydev->lock); |