net: phy: add 1000Base-X to phy settings table
authorRussell King <rmk+kernel@armlinux.org.uk>
Tue, 25 Jul 2017 14:02:52 +0000 (15:02 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 7 Aug 2017 03:55:28 +0000 (20:55 -0700)
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>
drivers/net/phy/phy-core.c

index c07845e77004780f0b1a2f8ff02c5a441977892d..21f75ae244b363eb1b1aeec245e5c3cd81db566e 100644 (file)
@@ -87,6 +87,11 @@ static const struct phy_setting settings[] = {
                .duplex = DUPLEX_FULL,
                .bit = ETHTOOL_LINK_MODE_1000baseKX_Full_BIT,
        },
+       {
+               .speed = SPEED_1000,
+               .duplex = DUPLEX_FULL,
+               .bit = ETHTOOL_LINK_MODE_1000baseX_Full_BIT,
+       },
        {
                .speed = SPEED_1000,
                .duplex = DUPLEX_FULL,