diff options
author | Heiner Kallweit <hkallweit1@gmail.com> | 2020-03-12 22:25:20 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-03-12 15:36:12 -0700 |
commit | 611d779af7cad2b87487ff58e4931a90c20b113c (patch) | |
tree | 382177a2a8158add5d4d5950044888912b07a32b /scripts/export_report.pl | |
parent | e4792ffe971dde60582028ccba08b5a2ad9d3359 (diff) |
net: phy: fix MDIO bus PM PHY resuming
So far we have the unfortunate situation that mdio_bus_phy_may_suspend()
is called in suspend AND resume path, assuming that function result is
the same. After the original change this is no longer the case,
resulting in broken resume as reported by Geert.
To fix this call mdio_bus_phy_may_suspend() in the suspend path only,
and let the phy_device store the info whether it was suspended by
MDIO bus PM.
Fixes: 503ba7c69610 ("net: phy: Avoid multiple suspends")
Reported-by: Geert Uytterhoeven <geert@linux-m68k.org>
Tested-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'scripts/export_report.pl')
0 files changed, 0 insertions, 0 deletions