1
0
mirror of https://xff.cz/git/u-boot/ synced 2026-01-26 20:35:22 +01:00

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 <vladimir.oltean@nxp.com>
Reviewed-by: Ramon Fried <rfried.dev@gmail.com>
This commit is contained in:
Vladimir Oltean
2021-06-29 20:53:17 +03:00
committed by Ramon Fried
parent 71346a8486
commit c442850768

View File

@@ -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);
}
/*