projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b84519c
)
driver: net: fm: minor fix in DM ETH support
author
Madalin Bucur
<madalin.bucur@oss.nxp.com>
Mon, 4 May 2020 10:09:12 +0000
(13:09 +0300)
committer
Priyanka Jain
<priyanka.jain@nxp.com>
Tue, 19 May 2020 03:52:07 +0000
(09:22 +0530)
Bus callback functions for read/write/reset need to be set only for
DM_ETH, moving endif a bit lower.
Signed-off-by: Madalin Bucur <madalin.bucur@oss.nxp.com>
Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
drivers/net/fm/eth.c
patch
|
blob
|
history
diff --git
a/drivers/net/fm/eth.c
b/drivers/net/fm/eth.c
index 5f1a0233525cf56b1efd7346b4cca0568f72f801..371c5d2de7148751ba8dca337922ad9755ecf419 100644
(file)
--- a/
drivers/net/fm/eth.c
+++ b/
drivers/net/fm/eth.c
@@
-54,10
+54,10
@@
static void dtsec_configure_serdes(struct fm_eth *priv)
bus.priv = priv->mac->phyregs;
#else
bus.priv = priv->pcs_mdio;
-#endif
bus.read = memac_mdio_read;
bus.write = memac_mdio_write;
bus.reset = memac_mdio_reset;
+#endif
qsgmii_loop:
/* SGMII IF mode + AN enable only for 1G SGMII, not for 2.5G */