summaryrefslogtreecommitdiff
path: root/drivers/net
diff options
context:
space:
mode:
authorVladimir Oltean <vladimir.oltean@nxp.com>2021-08-24 15:00:43 +0300
committerRamon Fried <rfried.dev@gmail.com>2021-09-28 18:50:56 +0300
commit4f8f801c97e457b72c0e4229c3013cc9bbd4254d (patch)
tree811a57c023225dad7e5257617e8e2c05718540dc /drivers/net
parent4f5bd8d68b4354ec395f69d5afccc41671f80c81 (diff)
downloadu-boot-4f8f801c97e457b72c0e4229c3013cc9bbd4254d.tar.xz
net: dsa: felix: propagate the error code from phy_startup()
Make sure that the link status returned by phy_startup() is propagated to the .start() method of struct eth_ops. Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com> Reviewed-by: Ramon Fried <rfried.dev@gmail.com> Tested-by: Michael Walle <michael@walle.cc>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/mscc_eswitch/felix_switch.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/net/mscc_eswitch/felix_switch.c b/drivers/net/mscc_eswitch/felix_switch.c
index c8ecf4f194..6aa7978446 100644
--- a/drivers/net/mscc_eswitch/felix_switch.c
+++ b/drivers/net/mscc_eswitch/felix_switch.c
@@ -352,9 +352,7 @@ static int felix_port_enable(struct udevice *dev, int port,
FELIX_QSYS_SYSTEM_SW_PORT_LOSSY |
FELIX_QSYS_SYSTEM_SW_PORT_SCH(1));
- phy_startup(phy);
-
- return 0;
+ return phy_startup(phy);
}
static void felix_port_disable(struct udevice *dev, int pidx,