linux/drivers/net/phy
Russell King (Oracle) 097acf0aa6 net: sfp: fix state loss when updating state_hw_mask
commit 04361b8bb8 upstream.

Andrew reports that the SFF modules on one of the ZII platforms do not
indicate link up due to the SFP code believing that LOS indicating that
there is no signal being received from the remote end, but in fact the
LOS signal is showing that there is signal.

What makes SFF modules different from SFPs is they typically have an
inverted LOS, which uncovered this issue. When we read the hardware
state, we mask it with state_hw_mask so we ignore anything we're not
interested in. However, we don't re-read when state_hw_mask changes,
leading to sfp->state being stale.

Arrange for a software poll of the module state after we have parsed
the EEPROM in sfp_sm_mod_probe() and updated state_*_mask. This will
generate any necessary events for signal changes for the state
machine as well as updating sfp->state.

Reported-by: Andrew Lunn <andrew@lunn.ch>
Tested-by: Andrew Lunn <andrew@lunn.ch>
Fixes: 8475c4b70b ("net: sfp: re-implement soft state polling setup")
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-06-14 11:15:15 +02:00
..
mscc net: phy: mscc: enable VSC8501/2 RGMII RX clock 2023-06-05 09:26:20 +02:00
adin.c
adin1100.c
amd.c
aquantia_hwmon.c
aquantia_main.c
aquantia.h
at803x.c
ax88796b.c
bcm-cygnus.c
bcm-phy-lib.c
bcm-phy-lib.h net: phy: bcm7xx: Correct read from expansion register 2023-05-24 17:32:31 +01:00
bcm-phy-ptp.c
bcm7xxx.c net: phy: bcm7xx: Correct read from expansion register 2023-05-24 17:32:31 +01:00
bcm63xx.c
bcm87xx.c
bcm54140.c
bcm84881.c
broadcom.c
cicada.c
cortina.c
davicom.c
dp83tc811.c
dp83td510.c
dp83640_reg.h
dp83640.c
dp83822.c net: phy: dp83822: Fix null pointer access on DP83825/DP83826 devices 2023-02-09 11:28:05 +01:00
dp83848.c
dp83867.c net: phy: dp83867: add w/a for packet errors seen with short cables 2023-05-24 17:32:43 +01:00
dp83869.c net: phy: dp83869: fix default value for tx-/rx-internal-delay 2023-04-06 12:10:53 +02:00
et1011c.c
fixed_phy.c
icplus.c
intel-xway.c
Kconfig
linkmode.c
lxt.c
Makefile
marvell-88x2222.c
marvell.c
marvell10g.c
mdio_bus.c net: mdio: validate parameter addr in mdiobus_get_phy() 2023-02-01 08:34:19 +01:00
mdio_device.c
mdio_devres.c net: mdio: fix owner field for mdio buses registered using device-tree 2023-03-30 12:49:05 +02:00
mdio-boardinfo.c
mdio-boardinfo.h
mediatek-ge.c
meson-gxl.c net: phy: meson-gxl: use MMD access dummy stubs for GXL, internal PHY 2023-02-14 19:11:44 +01:00
micrel.c
microchip_t1.c
microchip.c net: lan78xx: fix accessing the LAN7800's internal phy specific registers from the MAC driver 2023-03-17 08:50:24 +01:00
mii_timestamper.c
motorcomm.c
mxl-gpy.c
national.c
nxp-c45-tja11xx.c net: phy: nxp-c45-tja11xx: fix unsigned long multiplication overflow 2023-04-20 12:35:13 +02:00
nxp-tja11xx.c
phy_device.c net: phylib: get rid of unnecessary locking 2023-03-17 08:50:25 +01:00
phy_led_triggers.c
phy-c45.c
phy-core.c
phy.c net: phy: Ensure state transitions are processed from phy_stop() 2023-03-30 12:49:04 +02:00
phylink.c net: phylink: add phylink_expects_phy() method 2023-04-13 16:55:20 +02:00
qsemi.c
realtek.c
rockchip.c
sfp-bus.c
sfp.c net: sfp: fix state loss when updating state_hw_mask 2023-06-14 11:15:15 +02:00
sfp.h
smsc.c net: phy: smsc: bail out in lan87xx_read_status if genphy_read_status fails 2023-03-22 13:33:46 +01:00
spi_ks8995.c
ste10Xp.c
swphy.c
swphy.h
teranetics.c
uPD60620.c
vitesse.c
xilinx_gmii2rgmii.c