From: Vladimir Oltean Date: Tue, 29 Jun 2021 17:53:17 +0000 (+0300) Subject: net: enetc: propagate the return code from phy_startup() to eth_ops::start X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=c4428507683d2abb840e0752feea8f2fa465ca94;p=u-boot.git net: enetc: propagate the return code from phy_startup() to eth_ops::start Make sure that errors in the PHY driver .startup() method, such as no link, are propagated and not ignored. Signed-off-by: Vladimir Oltean Reviewed-by: Ramon Fried --- diff --git a/drivers/net/fsl_enetc.c b/drivers/net/fsl_enetc.c index 6a5a38c1ff..566cdc7e54 100644 --- a/drivers/net/fsl_enetc.c +++ b/drivers/net/fsl_enetc.c @@ -568,11 +568,9 @@ static int enetc_start(struct udevice *dev) enetc_setup_tx_bdr(dev); enetc_setup_rx_bdr(dev); - phy_startup(priv->phy); - enetc_setup_mac_iface(dev, priv->phy); - return 0; + return phy_startup(priv->phy); } /*