diff options
author | Joakim Tjernlund <joakim.tjernlund@transmode.se> | 2011-08-03 23:19:45 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-08-08 01:00:38 -0400 |
commit | bb24fd6ab0e948dc5bddec757b9d5a61362fa3f3 (patch) | |
tree | 8f0ed22d20d1cbf8089b898a9856ed1be0e449ec | |
parent | 5ae297b0126fe77ab8223f14d2cfcf187f3244c6 (diff) |
ucc_geth: Add SUPPORTED_MII and SUPPORTED_Autoneg
The driver supports Autoneg and at least MII. Tell the PHY
that to avoid any confusion in the PHY code.
Signed-off-by: Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/ucc_geth.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/drivers/net/ucc_geth.c b/drivers/net/ucc_geth.c index d3465ab50e56..42f8e31b0bbb 100644 --- a/drivers/net/ucc_geth.c +++ b/drivers/net/ucc_geth.c | |||
@@ -1761,10 +1761,12 @@ static int init_phy(struct net_device *dev) | |||
1761 | if (priv->phy_interface == PHY_INTERFACE_MODE_SGMII) | 1761 | if (priv->phy_interface == PHY_INTERFACE_MODE_SGMII) |
1762 | uec_configure_serdes(dev); | 1762 | uec_configure_serdes(dev); |
1763 | 1763 | ||
1764 | phydev->supported &= (ADVERTISED_10baseT_Half | | 1764 | phydev->supported &= (SUPPORTED_MII | |
1765 | ADVERTISED_10baseT_Full | | 1765 | SUPPORTED_Autoneg | |
1766 | ADVERTISED_100baseT_Half | | 1766 | ADVERTISED_10baseT_Half | |
1767 | ADVERTISED_100baseT_Full); | 1767 | ADVERTISED_10baseT_Full | |
1768 | ADVERTISED_100baseT_Half | | ||
1769 | ADVERTISED_100baseT_Full); | ||
1768 | 1770 | ||
1769 | if (priv->max_speed == SPEED_1000) | 1771 | if (priv->max_speed == SPEED_1000) |
1770 | phydev->supported |= ADVERTISED_1000baseT_Full; | 1772 | phydev->supported |= ADVERTISED_1000baseT_Full; |