[PATCH] ucc_geth: Add SUPPORTED_MII and SUPPORTED_Autoneg

Subsystems: networking drivers, the rest

STALE5546d

2 messages, 2 authors, 2011-08-08 · open the first message on its own page

[PATCH] ucc_geth: Add SUPPORTED_MII and SUPPORTED_Autoneg

From: Joakim Tjernlund <hidden>
Date: 2011-08-04 13:20:20

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 <redacted>
---
 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 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;
-- 
1.7.3.4

Re: [PATCH] ucc_geth: Add SUPPORTED_MII and SUPPORTED_Autoneg

From: David Miller <davem@davemloft.net>
Date: 2011-08-08 05:09:45

From: Joakim Tjernlund <redacted>
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 <redacted>
Applied.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help