diff options
author | Florian Fainelli <f.fainelli@gmail.com> | 2020-02-20 15:34:53 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-02-23 20:57:50 -0800 |
commit | 503ba7c6961034ff0047707685644cad9287c226 (patch) | |
tree | dae37fad7e07aef3531dd31a889d056207a6515e /net/core/devlink.c | |
parent | net: ks8851-ml: Fix IRQ handling and locking (diff) | |
download | linux-dev-503ba7c6961034ff0047707685644cad9287c226.tar.xz linux-dev-503ba7c6961034ff0047707685644cad9287c226.zip |
net: phy: Avoid multiple suspends
It is currently possible for a PHY device to be suspended as part of a
network device driver's suspend call while it is still being attached to
that net_device, either via phy_suspend() or implicitly via phy_stop().
Later on, when the MDIO bus controller get suspended, we would attempt
to suspend again the PHY because it is still attached to a network
device.
This is both a waste of time and creates an opportunity for improper
clock/power management bugs to creep in.
Fixes: 803dd9c77ac3 ("net: phy: avoid suspending twice a PHY")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions