OpenCloudOS-Kernel/drivers/net/phy
Claudiu Beznea f1131b9c23 net: phy: micrel: use kszphy_suspend()/kszphy_resume for irq aware devices
On a setup with KSZ9131 and MACB drivers it happens on suspend path, from
time to time, that the PHY interrupt arrives after PHY and MACB were
suspended (PHY via genphy_suspend(), MACB via macb_suspend()). In this
case the phy_read() at the beginning of kszphy_handle_interrupt() will
fail (as MACB driver is suspended at this time) leading to phy_error()
being called and a stack trace being displayed on console. To solve this
.suspend/.resume functions for all KSZ devices implementing
.handle_interrupt were replaced with kszphy_suspend()/kszphy_resume()
which disable/enable interrupt before/after calling
genphy_suspend()/genphy_resume().

The fix has been adapted for all KSZ devices which implements
.handle_interrupt but it has been tested only on KSZ9131.

Fixes: 59ca4e58b9 ("net: phy: micrel: implement generic .handle_interrupt() callback")
Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
2022-01-19 14:23:34 +00:00
..
mscc net_tstamp: add new flag HWTSTAMP_FLAG_BONDED_PHC_INDEX 2021-12-14 12:28:24 +00:00
Kconfig
Makefile
adin.c
amd.c
aquantia.h
aquantia_hwmon.c
aquantia_main.c
at803x.c net: phy: at803x: make array offsets static 2022-01-11 21:09:10 -08:00
ax88796b.c
bcm-cygnus.c
bcm-phy-lib.c
bcm-phy-lib.h
bcm7xxx.c
bcm63xx.c
bcm87xx.c
bcm54140.c
bcm84881.c
broadcom.c
cicada.c
cortina.c
davicom.c
dp83tc811.c
dp83640.c net_tstamp: add new flag HWTSTAMP_FLAG_BONDED_PHC_INDEX 2021-12-14 12:28:24 +00:00
dp83640_reg.h
dp83822.c
dp83848.c
dp83867.c
dp83869.c
et1011c.c
fixed_phy.c Revert "net: phy: fixed_phy: Fix NULL vs IS_ERR() checking in __fixed_phy_register" 2022-01-03 18:59:16 -08:00
icplus.c
intel-xway.c
linkmode.c
lxt.c
marvell-88x2222.c
marvell.c net: phy: marvell: add Marvell specific PHY loopback 2022-01-15 22:38:27 +00:00
marvell10g.c
mdio-boardinfo.c
mdio-boardinfo.h
mdio_bus.c net: mdio: Demote probed message to debug print 2022-01-03 19:05:39 -08:00
mdio_device.c
mdio_devres.c
mediatek-ge.c
meson-gxl.c
micrel.c net: phy: micrel: use kszphy_suspend()/kszphy_resume for irq aware devices 2022-01-19 14:23:34 +00:00
microchip.c
microchip_t1.c
mii_timestamper.c
motorcomm.c
mxl-gpy.c
national.c
nxp-c45-tja11xx.c phy: nxp-c45-tja11xx: add extts and perout support 2022-01-04 12:14:19 +00:00
nxp-tja11xx.c
phy-c45.c
phy-core.c net: phy: prefer 1000baseT over 1000baseKX 2021-12-09 11:51:50 -08:00
phy.c
phy_device.c
phy_led_triggers.c
phylink.c net: phylink: add pcs_validate() method 2021-12-16 10:37:13 +00:00
qsemi.c
realtek.c
rockchip.c
sfp-bus.c
sfp.c net: sfp: fix high power modules without diagnostic monitoring 2022-01-17 16:30:44 +00:00
sfp.h
smsc.c
spi_ks8995.c
ste10Xp.c
swphy.c
swphy.h
teranetics.c
uPD60620.c
vitesse.c
xilinx_gmii2rgmii.c