]> git.sur5r.net Git - u-boot/blobdiff - drivers/net/xilinx_axi_emac.c
sunxi-common.h: Remove dead #ifdef CONFIG_CMD_NET code block
[u-boot] / drivers / net / xilinx_axi_emac.c
index bb5044b31f5ed68b0947fa8b68af4ce4db3a193a..262b67b6cf9d00181e83633752fd21e312f65901 100644 (file)
@@ -261,6 +261,10 @@ static int setup_phy(struct eth_device *dev)
                       phydev->dev->name);
                return 0;
        }
+       if (!phydev->link) {
+               printf("%s: No link.\n", phydev->dev->name);
+               return 0;
+       }
 
        switch (phydev->speed) {
        case 1000: