diff options
author | Florian Fainelli <f.fainelli@gmail.com> | 2020-09-16 20:43:10 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-09-26 18:03:15 +0200 |
commit | e78590497f9627b8e2e9823ec5ed5be071a42baa (patch) | |
tree | 9fe41c4052ffae283811e3d766acfff6a7867fce /net/unix | |
parent | 94f2dc7ad055199e569979f24ef4d5a555d06065 (diff) | |
download | linux-rt-e78590497f9627b8e2e9823ec5ed5be071a42baa.tar.gz |
net: phy: Do not warn in phy_stop() on PHY_DOWN
[ Upstream commit 5116a8ade333b6c2e180782139c9c516a437b21c ]
When phy_is_started() was added to catch incorrect PHY states,
phy_stop() would not be qualified against PHY_DOWN. It is possible to
reach that state when the PHY driver has been unbound and the network
device is then brought down.
Fixes: 2b3e88ea6528 ("net: phy: improve phy state checking")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/unix')
0 files changed, 0 insertions, 0 deletions