Files
twx-linux/drivers
Florian Fainelli ba389f3620 net: phy: Avoid multiple suspends
commit 503ba7c696 upstream.

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: 803dd9c77a ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-03-18 07:14:10 +01:00
..
…
…
…
2020-02-24 08:34:44 +01:00
…
…
…
2020-03-11 14:14:45 +01:00
…
…
…
…
…
…
…
2020-02-28 16:38:43 +01:00
…
…
…
2020-03-18 07:14:10 +01:00
…
…
…
…
…
…
…
…
2020-02-14 16:33:24 -05:00
…
…
…
…
…
…
…
…
2020-03-11 14:15:03 +01:00
…
…
…
2020-02-24 08:34:47 +01:00
…
…
…