aboutsummaryrefslogtreecommitdiff
path: root/drivers/net/fsl_enetc.c
diff options
context:
space:
mode:
authorVladimir Oltean2021-06-29 20:53:17 +0300
committerRamon Fried2021-07-06 05:22:41 +0300
commitc4428507683d2abb840e0752feea8f2fa465ca94 (patch)
tree7e9d80ff96bd2e354a92998928169e43c7abb69b /drivers/net/fsl_enetc.c
parent71346a84860c67827ef4852bc1c0ad31ac3f46ed (diff)
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>
Diffstat (limited to 'drivers/net/fsl_enetc.c')
-rw-r--r--drivers/net/fsl_enetc.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/net/fsl_enetc.c b/drivers/net/fsl_enetc.c
index 6a5a38c1ffe..566cdc7e546 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);
}
/*