diff options
author | Wolfgang Denk <wd@denx.de> | 2012-07-12 08:23:58 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2012-07-12 08:23:58 +0200 |
commit | 0878222fed3fafbfd0b1f2e5a6b2da90a81e910d (patch) | |
tree | f88ba4ad1c5f06e6a772d5062c526d8153a71678 /drivers/net/sh_eth.c | |
parent | 0b15d51ed07db4c318d9c6b02b394ba5a3bc4296 (diff) | |
parent | 154177e14a141468374f438ed3096ab097b79976 (diff) | |
download | u-boot-imx-0878222fed3fafbfd0b1f2e5a6b2da90a81e910d.zip u-boot-imx-0878222fed3fafbfd0b1f2e5a6b2da90a81e910d.tar.gz u-boot-imx-0878222fed3fafbfd0b1f2e5a6b2da90a81e910d.tar.bz2 |
Merge branch 'next' of git://git.denx.de/u-boot-net into next
* 'next' of git://git.denx.de/u-boot-net:
net: Inline the new eth_setenv_enetaddr_by_index function
net: allow setting env enetaddr from net device setting
net/designware: Consecutive writes to the same register to be avoided
CACHE: net: asix: Fix asix driver to work with data cache on
net: phy: micrel: make ksz9021 phy accessible
net: abort network initialization if the PHY driver fails
phylib: phy_startup() should return an error code on failure
net: tftp: fix type of block arg to store_block
Signed-off-by: Wolfgang Denk <wd@denx.de>
Diffstat (limited to 'drivers/net/sh_eth.c')
-rw-r--r-- | drivers/net/sh_eth.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/net/sh_eth.c b/drivers/net/sh_eth.c index bb57e4d..268d884 100644 --- a/drivers/net/sh_eth.c +++ b/drivers/net/sh_eth.c @@ -415,7 +415,11 @@ static int sh_eth_config(struct sh_eth_dev *eth, bd_t *bd) goto err_phy_cfg; } phy = port_info->phydev; - phy_startup(phy); + ret = phy_startup(phy); + if (ret) { + printf(SHETHER_NAME ": phy startup failure\n"); + return ret; + } val = 0; |