From: Russell King <hidden> Date: 2021-01-12 23:00:30
This bit is enabled by default and advertises support for extended
next page support. XNP is only needed for 10GBase-T and MultiGig
support which is not supported. Additionally, Cisco MultiGig switches
will read this bit and attempt 10Gb negotiation even though Next Page
support is disabled. This will cause timeouts when the interface is
forced to 100Mbps and auto-negotiation will fail. The interfaces are
only 1000Base-T and supporting auto-negotiation for this only requires
the Next Page bit to be set.
Taken from:
https://github.com/SolidRun/linux-stable/commit/7406c5244b7ea6bc17a2afe8568277a8c4b126a9
and adapted to mainline kernels by rmk.
Signed-off-by: Russell King <redacted>
---
drivers/net/phy/at803x.c | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
@@ -587,7 +587,13 @@ static int at803x_config_init(struct phy_device *phydev)returnret;}-return0;+/* Ar803x extended next page bit is enabled by default. Cisco+*multigigswitchesreadthisbitandattempttonegotiate10Gbps+*ratesevenifthenextpagebitisdisabled.Thisisincorrect+*behaviourbutwestillneedtoaccomodateit.XNPisonlyneeded+*for10Gbpssupport,sodisableXNP.+*/+returnphy_modify(phydev,MII_ADVERTISE,MDIO_AN_CTRL1_XNP,0);}staticintat803x_ack_interrupt(structphy_device*phydev)
From: Andrew Lunn <andrew@lunn.ch> Date: 2021-01-14 22:50:02
On Tue, Jan 12, 2021 at 10:59:43PM +0000, Russell King wrote:
This bit is enabled by default and advertises support for extended
next page support. XNP is only needed for 10GBase-T and MultiGig
support which is not supported. Additionally, Cisco MultiGig switches
will read this bit and attempt 10Gb negotiation even though Next Page
support is disabled. This will cause timeouts when the interface is
forced to 100Mbps and auto-negotiation will fail. The interfaces are
only 1000Base-T and supporting auto-negotiation for this only requires
the Next Page bit to be set.
Taken from:
https://github.com/SolidRun/linux-stable/commit/7406c5244b7ea6bc17a2afe8568277a8c4b126a9
and adapted to mainline kernels by rmk.
Signed-off-by: Russell King <redacted>
From: Jakub Kicinski <kuba@kernel.org> Date: 2021-01-14 23:38:16
On Thu, 14 Jan 2021 23:49:02 +0100 Andrew Lunn wrote:
On Tue, Jan 12, 2021 at 10:59:43PM +0000, Russell King wrote:
quoted
This bit is enabled by default and advertises support for extended
next page support. XNP is only needed for 10GBase-T and MultiGig
support which is not supported. Additionally, Cisco MultiGig switches
will read this bit and attempt 10Gb negotiation even though Next Page
support is disabled. This will cause timeouts when the interface is
forced to 100Mbps and auto-negotiation will fail. The interfaces are
only 1000Base-T and supporting auto-negotiation for this only requires
the Next Page bit to be set.
Taken from:
https://github.com/SolidRun/linux-stable/commit/7406c5244b7ea6bc17a2afe8568277a8c4b126a9
and adapted to mainline kernels by rmk.
Signed-off-by: Russell King <redacted>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Added missing 'm' to accommodate and applied, thanks!