From: Joakim Tjernlund Date: Thu, 4 Aug 2011 03:19:45 +0000 (+0000) Subject: ucc_geth: Add SUPPORTED_MII and SUPPORTED_Autoneg X-Git-Tag: MMI-PSA29.97-13-9~18194^2~569 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=bb24fd6ab0e948dc5bddec757b9d5a61362fa3f3;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git 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 Signed-off-by: David S. Miller --- 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) if (priv->phy_interface == PHY_INTERFACE_MODE_SGMII) uec_configure_serdes(dev); - phydev->supported &= (ADVERTISED_10baseT_Half | - ADVERTISED_10baseT_Full | - ADVERTISED_100baseT_Half | - ADVERTISED_100baseT_Full); + phydev->supported &= (SUPPORTED_MII | + SUPPORTED_Autoneg | + ADVERTISED_10baseT_Half | + ADVERTISED_10baseT_Full | + ADVERTISED_100baseT_Half | + ADVERTISED_100baseT_Full); if (priv->max_speed == SPEED_1000) phydev->supported |= ADVERTISED_1000baseT_Full;