mirror of https://github.com/torvalds/linux.git
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:
|
||
|---|---|---|
| .. | ||
| mscc | ||
| Kconfig | ||
| Makefile | ||
| adin.c | ||
| amd.c | ||
| aquantia.h | ||
| aquantia_hwmon.c | ||
| aquantia_main.c | ||
| at803x.c | ||
| 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 | ||
| dp83640_reg.h | ||
| dp83822.c | ||
| dp83848.c | ||
| dp83867.c | ||
| dp83869.c | ||
| et1011c.c | ||
| fixed_phy.c | ||
| icplus.c | ||
| intel-xway.c | ||
| linkmode.c | ||
| lxt.c | ||
| marvell-88x2222.c | ||
| marvell.c | ||
| marvell10g.c | ||
| mdio-boardinfo.c | ||
| mdio-boardinfo.h | ||
| mdio_bus.c | ||
| mdio_device.c | ||
| mdio_devres.c | ||
| mediatek-ge.c | ||
| meson-gxl.c | ||
| micrel.c | ||
| microchip.c | ||
| microchip_t1.c | ||
| mii_timestamper.c | ||
| motorcomm.c | ||
| mxl-gpy.c | ||
| national.c | ||
| nxp-c45-tja11xx.c | ||
| nxp-tja11xx.c | ||
| phy-c45.c | ||
| phy-core.c | ||
| phy.c | ||
| phy_device.c | ||
| phy_led_triggers.c | ||
| phylink.c | ||
| qsemi.c | ||
| realtek.c | ||
| rockchip.c | ||
| sfp-bus.c | ||
| sfp.c | ||
| sfp.h | ||
| smsc.c | ||
| spi_ks8995.c | ||
| ste10Xp.c | ||
| swphy.c | ||
| swphy.h | ||
| teranetics.c | ||
| uPD60620.c | ||
| vitesse.c | ||
| xilinx_gmii2rgmii.c | ||