linux-yocto/drivers/net/phy
Oleksij Rempel 10946f8346 net: phy: microchip: limit 100M workaround to link-down events on LAN88xx
[ Upstream commit dd4360c0e8 ]

Restrict the 100Mbit forced-mode workaround to link-down transitions
only, to prevent repeated link reset cycles in certain configurations.

The workaround was originally introduced to improve signal reliability
when switching cables between long and short distances. It temporarily
forces the PHY into 10 Mbps before returning to 100 Mbps.

However, when used with autonegotiating link partners (e.g., Intel i350),
executing this workaround on every link change can confuse the partner
and cause constant renegotiation loops. This results in repeated link
down/up transitions and the PHY never reaching a stable state.

Limit the workaround to only run during the PHY_NOLINK state. This ensures
it is triggered only once per link drop, avoiding disruptive toggling
while still preserving its intended effect.

Note: I am not able to reproduce the original issue that this workaround
addresses. I can only confirm that 100 Mbit mode works correctly in my
test setup. Based on code inspection, I assume the workaround aims to
reset some internal state machine or signal block by toggling speeds.
However, a PHY reset is already performed earlier in the function via
phy_init_hw(), which may achieve a similar effect. Without a reproducer,
I conservatively keep the workaround but restrict its conditions.

Fixes: e57cf3639c ("net: lan78xx: fix accessing the LAN7800's internal phy specific registers from the MAC driver")
Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://patch.msgid.link/20250709130753.3994461-3-o.rempel@pengutronix.de
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-07-17 18:35:19 +02:00
..
mscc net: phy: mscc: Stop clearing the the UDPv4 checksum for L2 frames 2025-06-19 15:28:19 +02:00
adin.c
adin1100.c
amd.c
aquantia_hwmon.c
aquantia_main.c
aquantia.h
at803x.c net: phy: at803x: fix passing the wrong reference for config_intr 2024-02-05 20:14:22 +00:00
ax88796b.c
bcm-cygnus.c
bcm-phy-lib.c
bcm-phy-lib.h
bcm-phy-ptp.c
bcm7xxx.c
bcm63xx.c
bcm87xx.c
bcm54140.c
bcm84881.c net: phy: bcm84881: Fix some error handling paths 2024-10-17 15:24:24 +02:00
broadcom.c
cicada.c
cortina.c
davicom.c
dp83tc811.c
dp83td510.c
dp83640_reg.h
dp83640.c
dp83822.c net: phy: dp83822: Fix reset pin definitions 2024-11-01 01:58:33 +01:00
dp83848.c net: phy: ti: add PHY_RST_AFTER_CLK_EN flag 2024-11-14 13:19:31 +01:00
dp83867.c
dp83869.c net: phy: dp83869: fix memory corruption when enabling fiber 2024-10-17 15:24:23 +02:00
et1011c.c
fixed_phy.c
icplus.c
intel-xway.c
Kconfig
linkmode.c
lxt.c
Makefile
marvell-88q2xxx.c
marvell-88x2222.c
marvell.c
marvell10g.c
mdio_bus.c net/mdiobus: Fix potential out-of-bounds clause 45 read/write access 2025-06-19 15:28:41 +02:00
mdio_device.c
mdio_devres.c
mdio-boardinfo.c
mdio-boardinfo.h
mdio-open-alliance.h
mediatek-ge-soc.c net: phy: mediatek-ge-soc: follow netdev LED trigger semantics 2024-05-02 16:32:37 +02:00
mediatek-ge.c
meson-gxl.c
micrel.c net: phy: micrel: Fix the KSZ9131 MDI-X status issue 2024-08-11 12:47:21 +02:00
microchip_t1.c net: phy: microchip: lan87xx: reinit PHY after cable test 2024-07-18 13:21:12 +02:00
microchip_t1s.c
microchip.c net: phy: microchip: limit 100M workaround to link-down events on LAN88xx 2025-07-17 18:35:19 +02:00
mii_timestamper.c
motorcomm.c
mxl-gpy.c net: phy: mxl-gpy: Remove interrupt mask clearing from config_init 2024-06-27 13:49:07 +02:00
national.c
ncn26000.c
nxp-c45-tja11xx.c net: phy: c45-tjaxx: add delay between MDIO write and read in soft_reset 2025-02-17 09:40:39 +01:00
nxp-cbtx.c
nxp-tja11xx.c
phy_device.c net: phy: clear phydev->devlink when the link is deleted 2025-06-19 15:28:18 +02:00
phy_led_triggers.c net: phy: leds: fix memory leak 2025-05-02 07:50:43 +02:00
phy-c45.c
phy-core.c
phy.c
phylink.c net: phylink: use pl->link_interface in phylink_expects_phy() 2025-06-04 14:42:02 +02:00
qsemi.c
realtek.c net: phy: realtek: add support for RTL8366S Gigabit PHY 2024-08-11 12:47:19 +02:00
rockchip.c
sfp-bus.c net: sfp-bus: fix SFP mode detect from bitrate 2024-06-16 13:47:30 +02:00
sfp.c net: sfp: add quirk for 2.5G OEM BX SFP 2025-04-25 10:45:15 +02:00
sfp.h
smsc.c net: phy: smsc: Fix link failure in forced mode with Auto-MDIX 2025-07-17 18:35:10 +02:00
spi_ks8995.c
ste10Xp.c
stubs.c
swphy.c
swphy.h
teranetics.c
uPD60620.c
vitesse.c net: phy: vitesse: repair vsc73xx autonegotiation 2024-09-18 19:24:05 +02:00
xilinx_gmii2rgmii.c