net: switch to using PHY_INTERFACE_MODE_10GBASER rather than 10GKR
authorRussell King <rmk+kernel@armlinux.org.uk>
Fri, 3 Jan 2020 20:43:23 +0000 (20:43 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 5 Jan 2020 23:05:35 +0000 (15:05 -0800)
commite0f909bc3a242296da9ccff78277f26d4883a79d
tree030546ddba4271e8f33cbcf6e98b9e89a63b2d34
parentc114574ebfdf42f826776f717c8056a00fa94881
net: switch to using PHY_INTERFACE_MODE_10GBASER rather than 10GKR

Switch network drivers, phy drivers, and SFP/phylink over to use the
more correct 10GBASE-R, rather than 10GBASE-KR. 10GBASE-KR is backplane
ethernet, which is 10GBASE-R with autonegotiation on top, which our
current usage on the affected platforms does not have.

The only remaining user of PHY_INTERFACE_MODE_10GKR is the Aquantia
PHY, which has a separate mode for 10GBASE-KR.

For Marvell mvpp2, we detect 10GBASE-KR, and rewrite it to 10GBASE-R
for compatibility with existing DT - this is the only network driver
at present that makes use of PHY_INTERFACE_MODE_10GKR.

Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c
drivers/net/phy/aquantia_main.c
drivers/net/phy/bcm84881.c
drivers/net/phy/marvell10g.c
drivers/net/phy/phylink.c
drivers/net/phy/sfp-bus.c
drivers/phy/marvell/phy-mvebu-cp110-comphy.c