Эх сурвалжийг харах

net: phy: add 1000Base-X to phy settings table

Add the missing 1000Base-X entry to the phy settings table.  This was
not included because the original code could not cope with more than
32 bits of link mode mask.

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>
Russell King 8 жил өмнө
parent
commit
1f3645bb41

+ 5 - 0
drivers/net/phy/phy-core.c

@@ -87,6 +87,11 @@ static const struct phy_setting settings[] = {
 		.duplex = DUPLEX_FULL,
 		.duplex = DUPLEX_FULL,
 		.bit = ETHTOOL_LINK_MODE_1000baseKX_Full_BIT,
 		.bit = ETHTOOL_LINK_MODE_1000baseKX_Full_BIT,
 	},
 	},
+	{
+		.speed = SPEED_1000,
+		.duplex = DUPLEX_FULL,
+		.bit = ETHTOOL_LINK_MODE_1000baseX_Full_BIT,
+	},
 	{
 	{
 		.speed = SPEED_1000,
 		.speed = SPEED_1000,
 		.duplex = DUPLEX_FULL,
 		.duplex = DUPLEX_FULL,