]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - drivers/net/xilinx_axi_emac.c
drivers: fsl-mc: Update flibs to mc-0.6.0.1
[karo-tx-uboot.git] / drivers / net / xilinx_axi_emac.c
index bb5044b31f5ed68b0947fa8b68af4ce4db3a193a..df053feee8c8b2de3df918d91ee1def1e2fa6403 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:
@@ -552,7 +556,7 @@ static int axiemac_recv(struct eth_device *dev)
 #endif
        /* Pass the received frame up for processing */
        if (length)
-               NetReceive(rxframe, length);
+               net_process_received_packet(rxframe, length);
 
 #ifdef DEBUG
        /* It is useful to clear buffer to be sure that it is consistent */