aboutsummaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorTom Rini2020-04-04 19:20:45 -0400
committerTom Rini2020-04-04 19:20:45 -0400
commit74bf17db394d49c7041ee01a277fcf8d99b9a514 (patch)
tree9ca19b2e7bc0d1e0c74505c81f57c3b0b2ceeb43 /drivers
parenta7b86eb5248bf33dca35cb9ba2fb211aa67ef370 (diff)
parentb13da11255a01475d41bdc5d367d55ed3656bae8 (diff)
Merge branch 'master' of git://git.denx.de/u-boot-sh
- net: sh_eth: Init the hardware before PHY access
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/sh_eth.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/sh_eth.c b/drivers/net/sh_eth.c
index 183e8e3083a..f8e5d05722a 100644
--- a/drivers/net/sh_eth.c
+++ b/drivers/net/sh_eth.c
@@ -859,6 +859,10 @@ static int sh_ether_probe(struct udevice *udev)
goto err_mdio_register;
#endif
+ ret = sh_eth_init_common(eth, pdata->enetaddr);
+ if (ret)
+ goto err_phy_config;
+
ret = sh_eth_phy_config(udev);
if (ret) {
printf(SHETHER_NAME ": phy config timeout\n");