projects
/
platform
/
kernel
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4f5bd8d
)
net: dsa: felix: propagate the error code from phy_startup()
author
Vladimir Oltean
<vladimir.oltean@nxp.com>
Tue, 24 Aug 2021 12:00:43 +0000
(15:00 +0300)
committer
Ramon Fried
<rfried.dev@gmail.com>
Tue, 28 Sep 2021 15:50:56 +0000
(18:50 +0300)
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>
drivers/net/mscc_eswitch/felix_switch.c
patch
|
blob
|
history
diff --git
a/drivers/net/mscc_eswitch/felix_switch.c
b/drivers/net/mscc_eswitch/felix_switch.c
index
c8ecf4f
..
6aa7978
100644
(file)
--- 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,