diff mbox

ucc_geth: Add SUPPORTED_MII and SUPPORTED_Autoneg

Message ID 1312463985-2230-1-git-send-email-Joakim.Tjernlund@transmode.se
State Accepted, archived
Delegated to: David Miller
Headers show

Commit Message

Joakim Tjernlund Aug. 4, 2011, 1:19 p.m. UTC
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>
---
 drivers/net/ucc_geth.c |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

Comments

David Miller Aug. 8, 2011, 5:09 a.m. UTC | #1
From: Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
Date: Thu, 4 Aug 2011 15:19:45 +0200

> 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>

Applied.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/drivers/net/ucc_geth.c b/drivers/net/ucc_geth.c
index 06a5db3..fa00935 100644
--- a/drivers/net/ucc_geth.c
+++ b/drivers/net/ucc_geth.c
@@ -1760,10 +1760,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;