Merge branch 'master' of git://git.denx.de/u-boot-sh
- net: sh_eth: Init the hardware before PHY access
This commit is contained in:
		
						commit
						74bf17db39
					
				| 
						 | 
					@ -859,6 +859,10 @@ static int sh_ether_probe(struct udevice *udev)
 | 
				
			||||||
		goto err_mdio_register;
 | 
							goto err_mdio_register;
 | 
				
			||||||
#endif
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						ret = sh_eth_init_common(eth, pdata->enetaddr);
 | 
				
			||||||
 | 
						if (ret)
 | 
				
			||||||
 | 
							goto err_phy_config;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	ret = sh_eth_phy_config(udev);
 | 
						ret = sh_eth_phy_config(udev);
 | 
				
			||||||
	if (ret) {
 | 
						if (ret) {
 | 
				
			||||||
		printf(SHETHER_NAME ": phy config timeout\n");
 | 
							printf(SHETHER_NAME ": phy config timeout\n");
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue