]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
net: zynq_gem: Dont adverstise 1000BASE-T for ep
authorSiva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
Tue, 5 Jan 2016 09:51:45 +0000 (15:21 +0530)
committerMichal Simek <michal.simek@xilinx.com>
Tue, 5 Jan 2016 11:30:15 +0000 (12:30 +0100)
Dont advertise 1000BASE-T for Zynqmp emulation
platform as it doesnt support 1000BASE-T

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
drivers/net/zynq_gem.c

index 2c8b566094a428805f7d1f9eedbe28cbb2eb8a15..12850882fe8368dd771752e0bd4416c46a658144 100644 (file)
@@ -397,6 +397,17 @@ static int zynq_gem_init(struct eth_device *dev, bd_t * bis)
        phydev->supported = supported | ADVERTISED_Pause |
                            ADVERTISED_Asym_Pause;
        phydev->advertising = phydev->supported;
+
+#ifdef CONFIG_TARGET_ZYNQMP_EP
+       /*
+        * Phy can support 1000baseT but ep does not
+        * support hence dont advertise 1000baseT incase
+        * of ep
+        */
+       phydev->advertising &= ~(SUPPORTED_1000baseT_Half |
+                                SUPPORTED_1000baseT_Full);
+#endif
+
        priv->phydev = phydev;
        phy_config(phydev);
        phy_startup(phydev);