WSL2-Linux-Kernel/drivers/net/pcs
Russell King (Oracle) 5f44dfa841 net: pcs: xpcs: remove double-read of link state when using AN
[ Upstream commit ef63461caf ]

Phylink does not want the current state of the link when reading the
PCS link state - it wants the latched state. Don't double-read the
MII status register. Phylink will re-read as necessary to capture
transient link-down events as of dbae3388ea ("net: phylink: Force
retrigger in case of latched link-fail indicator").

The above referenced commit is a dependency for this change, and thus
this change should not be backported to any kernel that does not
contain the above referenced commit.

Fixes: fcb26bd2b6 ("net: phy: Add Synopsys DesignWare XPCS MDIO module")
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-05-11 23:00:26 +09:00
..
Kconfig
Makefile net: pcs: xpcs: add support for NXP SJA1105 2021-06-11 13:43:56 -07:00
pcs-lynx.c
pcs-xpcs-nxp.c net: update NXP copyright text 2021-09-17 13:52:17 +01:00
pcs-xpcs.c net: pcs: xpcs: remove double-read of link state when using AN 2023-05-11 23:00:26 +09:00
pcs-xpcs.h net: pcs: xpcs: add support for NXP SJA1110 2021-06-11 13:43:56 -07:00