diff options
Diffstat (limited to 'drivers/net/xilinx_axi_emac.c')
| -rw-r--r-- | drivers/net/xilinx_axi_emac.c | 6 | 
1 files changed, 5 insertions, 1 deletions
| diff --git a/drivers/net/xilinx_axi_emac.c b/drivers/net/xilinx_axi_emac.c index 7854a04ca..d77714440 100644 --- a/drivers/net/xilinx_axi_emac.c +++ b/drivers/net/xilinx_axi_emac.c @@ -272,7 +272,11 @@ static int setup_phy(struct eth_device *dev)  	phydev->advertising = phydev->supported;  	priv->phydev = phydev;  	phy_config(phydev); -	phy_startup(phydev); +	if (phy_startup(phydev)) { +		printf("axiemac: could not initialize PHY %s\n", +		       phydev->dev->name); +		return 0; +	}  	switch (phydev->speed) {  	case 1000: |