Skip to contentSkip to conversation

drivers: net: cpsw: init phy with gigabit features

PATCH In review Ilya Ledvich 2 participants 2 messages Mar 12, 2014 Network drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drivers: net: cpsw: init phy with gigabit features

CPSW ia a gigabit device. Use the PHY_GBIT_FEATURES macro to determine phy supported features.
Tested on cm_t335.

---
 drivers/net/cpsw.c |    6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)
drivers/net/cpsw.c +1 -5
index 50167aa..018ec9a 100644
@@ -941,11 +941,7 @@ static int cpsw_phy_init(struct eth_device *dev, struct cpsw_slave *slave)
 {
 	struct cpsw_priv *priv = (struct cpsw_priv *)dev->priv;
 	struct phy_device *phydev;
-	u32 supported = (SUPPORTED_10baseT_Half |
-			SUPPORTED_10baseT_Full |
-			SUPPORTED_100baseT_Half |
-			SUPPORTED_100baseT_Full |
-			SUPPORTED_1000baseT_Full);
+	u32 supported = PHY_GBIT_FEATURES;
 
 	phydev = phy_connect(priv->bus,
 			CONFIG_PHY_ADDR,
Signature · 1 line
1.7.9.5
#1 lore raw
Quoted 5 lines · Ilya Ledvich

CPSW ia a gigabit device. Use the PHY_GBIT_FEATURES macro to determine phy supported features.
Tested on cm_t335.

Applied to u-boot-ti/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20140312/4a04d44e/attachment.pgp>