net: phylink: always do a major config when attaching a SFP PHY
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Fri, 17 Jan 2025 08:44:25 +0000 (08:44 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 20 Jan 2025 12:17:35 +0000 (12:17 +0000)
commitaf10e092b77aaa11f056765d979e9be7e8276a3a
tree63091152b82e95d19602122b59908bcddad1d5f7
parent45bd1c5ba7580f612e46f3c6cb430c64adfd0294
net: phylink: always do a major config when attaching a SFP PHY

Background: https://lore.kernel.org/r/20250107123615.161095-1-ericwouds@gmail.com

Since adding negotiation of in-band capabilities, it is no longer
sufficient to just look at the MLO_AN_xxx mode and PHY interface to
decide whether to do a major configuration, since the result now
depends on the capabilities of the attaching PHY.

Always trigger a major configuration in this case.

Testing log: https://lore.kernel.org/r/f20c9744-3953-40e7-a9c9-5534b25d2e2a@gmail.com

Reported-by: Eric Woudstra <ericwouds@gmail.com>
Tested-by: Eric Woudstra <ericwouds@gmail.com>
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/phylink.c