diff options
author | Mark Einon <mark.einon@gmail.com> | 2014-09-03 22:40:56 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-09-08 13:47:01 -0700 |
commit | bbf45bcfdaa27886dd1109f75ac2a4fa995e7b6d (patch) | |
tree | 575a928c1ac900d417424b11d777b0b0990efaa7 /drivers/staging/et131x/et131x.c | |
parent | staging: et131x: Remove spinlock fbr_lock (diff) | |
download | linux-dev-bbf45bcfdaa27886dd1109f75ac2a4fa995e7b6d.tar.xz linux-dev-bbf45bcfdaa27886dd1109f75ac2a4fa995e7b6d.zip |
staging: et131x: Add auto-negotiation and 1000BT_Half as supported protocols
The driver supports auto-negotiation and 100BaetT_Half but doesn't
advertise or list it in it's phydev. Fix that.
Signed-off-by: Mark Einon <mark.einon@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/et131x/et131x.c')
-rw-r--r-- | drivers/staging/et131x/et131x.c | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/drivers/staging/et131x/et131x.c b/drivers/staging/et131x/et131x.c index 9819e0e778ab..1ac9e7e08bea 100644 --- a/drivers/staging/et131x/et131x.c +++ b/drivers/staging/et131x/et131x.c @@ -3643,18 +3643,20 @@ static int et131x_mii_probe(struct net_device *netdev) return PTR_ERR(phydev); } - phydev->supported &= (SUPPORTED_10baseT_Half - | SUPPORTED_10baseT_Full - | SUPPORTED_100baseT_Half - | SUPPORTED_100baseT_Full - | SUPPORTED_Autoneg - | SUPPORTED_MII - | SUPPORTED_TP); + phydev->supported &= (SUPPORTED_10baseT_Half | + SUPPORTED_10baseT_Full | + SUPPORTED_100baseT_Half | + SUPPORTED_100baseT_Full | + SUPPORTED_Autoneg | + SUPPORTED_MII | + SUPPORTED_TP); if (adapter->pdev->device != ET131X_PCI_DEVICE_ID_FAST) - phydev->supported |= SUPPORTED_1000baseT_Full; + phydev->supported |= SUPPORTED_1000baseT_Half | + SUPPORTED_1000baseT_Full; phydev->advertising = phydev->supported; + phydev->autoneg = AUTONEG_ENABLE; adapter->phydev = phydev; dev_info(&adapter->pdev->dev, |