linux/drivers/net/phy
Heiner Kallweit 611d779af7 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: 503ba7c696 ("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>
2020-03-12 15:36:12 -07:00
..
Kconfig net: phy: add default ARCH_BCM_IPROC for MDIO_BCM_IPROC 2020-01-28 11:00:08 +01:00
Makefile net: Add a layer for non-PHY MII time stamping drivers. 2019-12-25 19:51:33 -08:00
adin.c net: phy: adin: fix a warning about msleep 2020-01-19 16:06:42 +01:00
amd.c
aquantia.h net: phy: Use the correct style for SPDX License Identifier 2019-11-27 11:25:48 -08:00
aquantia_hwmon.c
aquantia_main.c net: switch to using PHY_INTERFACE_MODE_10GBASER rather than 10GKR 2020-01-05 15:05:35 -08:00
at803x.c net: phy: at803x: disable vddio regulator 2020-01-31 07:54:48 -08:00
ax88796b.c
bcm-cygnus.c
bcm-phy-lib.c
bcm-phy-lib.h net: phy: Use the correct style for SPDX License Identifier 2019-11-27 11:25:48 -08:00
bcm7xxx.c net: phy: bcm7xxx: define soft_reset for 40nm EPHY 2019-10-18 10:00:07 -07:00
bcm63xx.c net: phy: bcm63xx: fix OOPS due to missing driver name 2020-03-03 17:37:06 -08:00
bcm87xx.c
bcm84881.c net: switch to using PHY_INTERFACE_MODE_10GBASER rather than 10GKR 2020-01-05 15:05:35 -08:00
broadcom.c net: phy: broadcom: Fix a typo ("firsly") 2020-02-18 12:31:25 -08:00
cicada.c
cortina.c
davicom.c
dp83tc811.c
dp83640.c net: Introduce a new MII time stamping interface. 2019-12-25 19:51:33 -08:00
dp83640_reg.h
dp83822.c net: phy: DP83822: Add support for additional DP83825 devices 2020-01-23 21:21:12 +01:00
dp83848.c
dp83867.c Merge ra.kernel.org:/pub/scm/linux/kernel/git/netdev/net 2020-01-19 22:10:04 +01:00
dp83869.c net: phy: dp83869: Remove unneeded semicolon 2019-12-14 16:11:40 -08:00
et1011c.c
fixed_phy.c net: phy: fixed_phy: switch to using fwnode_gpiod_get_index 2020-01-05 14:27:01 -08:00
icplus.c
intel-xway.c
lxt.c net: phy: provide and use genphy_read_status_fixed() 2019-12-19 12:52:34 -08:00
marvell.c net: phy: marvell: don't interpret PHY status unless resolved 2020-02-27 11:17:21 -08:00
marvell10g.c net: switch to using PHY_INTERFACE_MODE_10GBASER rather than 10GKR 2020-01-05 15:05:35 -08:00
mdio-aspeed.c
mdio-bcm-iproc.c net: phy: restore mdio regs in the iproc mdio driver 2020-02-16 19:19:18 -08:00
mdio-bcm-unimac.c
mdio-bitbang.c
mdio-boardinfo.c
mdio-boardinfo.h
mdio-cavium.c
mdio-cavium.h net: phy: Use the correct style for SPDX License Identifier 2019-11-27 11:25:48 -08:00
mdio-gpio.c
mdio-hisi-femac.c
mdio-i2c.c net: mdio-i2c: add support for Clause 45 accesses 2019-12-11 11:53:41 -08:00
mdio-i2c.h net: phy: Use the correct style for SPDX License Identifier 2019-11-27 11:25:48 -08:00
mdio-moxart.c
mdio-mscc-miim.c
mdio-mux-bcm-iproc.c
mdio-mux-gpio.c
mdio-mux-meson-g12a.c clk: let init callback return an error code 2019-12-23 18:53:13 -08:00
mdio-mux-mmioreg.c
mdio-mux-multiplexer.c
mdio-mux.c
mdio-octeon.c
mdio-sun4i.c phy: mdio-sun4i: add missed regulator_disable in remove 2019-11-18 17:22:40 -08:00
mdio-thunder.c phy: mdio-thunder: add missed pci_release_regions in remove 2019-12-06 12:05:06 -08:00
mdio-xgene.c
mdio-xgene.h net: phy: Use the correct style for SPDX License Identifier 2019-11-27 11:25:48 -08:00
mdio_bus.c net: phy: Maintain MDIO device and bus statistics 2020-01-17 11:12:44 +01:00
mdio_device.c net: phy: allow for reset line to be tied to a sleepy GPIO controller 2019-10-04 18:07:45 -07:00
meson-gxl.c
micrel.c net: phy: micrel: Update KSZ87xx PHY name 2019-10-17 16:31:52 -07:00
microchip.c
microchip_t1.c
mii_timestamper.c net: mii_timestamper: fix static allocation by PHY driver 2020-01-31 07:46:11 -08:00
mscc.c net: phy: mscc: fix firmware paths 2020-02-26 20:53:09 -08:00
mscc_fc_buffer.h net: phy: mscc: macsec initialization 2020-01-14 11:31:41 -08:00
mscc_mac.h net: phy: mscc: macsec initialization 2020-01-14 11:31:41 -08:00
mscc_macsec.h net: phy: mscc: PN rollover support 2020-01-14 11:31:41 -08:00
national.c
nxp-tja11xx.c
phy-c45.c net: phy: corrected the return value for genphy_check_and_restart_aneg and genphy_c45_check_and_restart_aneg 2020-02-26 20:41:42 -08:00
phy-core.c net: phy: don't crash in phy_read/_write_mmd without a PHY driver 2020-01-20 10:08:20 +01:00
phy.c net: phy: avoid clearing PHY interrupts twice in irq handler 2020-03-01 19:04:19 -08:00
phy_device.c net: phy: fix MDIO bus PM PHY resuming 2020-03-12 15:36:12 -07:00
phy_led_triggers.c
phylink.c phylink: Improve error message when validate failed 2020-03-03 18:01:33 -08:00
qsemi.c
realtek.c net: phy: realtek: add support for configuring the RX delay on RTL8211F 2019-12-26 13:22:17 -08:00
rockchip.c
sfp-bus.c net: switch to using PHY_INTERFACE_MODE_10GBASER rather than 10GKR 2020-01-05 15:05:35 -08:00
sfp.c net: sfp: report error on failure to read sfp soft status 2019-12-19 17:26:07 -08:00
sfp.h net: sfp: add module start/stop upstream notifications 2019-12-11 11:53:41 -08:00
smsc.c net: phy: smsc: LAN8740: add PHY_RST_AFTER_CLK_EN flag 2019-10-23 21:44:44 -07:00
spi_ks8995.c
ste10Xp.c
swphy.c
swphy.h
teranetics.c
uPD60620.c net: phy: use phy_resolve_aneg_pause() 2019-12-19 12:52:34 -08:00
vitesse.c
xilinx_gmii2rgmii.c