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>
This commit is contained in:

committed by
Ramon Fried

parent
4f5bd8d68b
commit
4f8f801c97
@@ -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_LOSSY |
|
||||||
FELIX_QSYS_SYSTEM_SW_PORT_SCH(1));
|
FELIX_QSYS_SYSTEM_SW_PORT_SCH(1));
|
||||||
|
|
||||||
phy_startup(phy);
|
return phy_startup(phy);
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void felix_port_disable(struct udevice *dev, int pidx,
|
static void felix_port_disable(struct udevice *dev, int pidx,
|
||||||
|
Reference in New Issue
Block a user