mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2024-11-19 23:17:53 +01:00
ar71xx: reset the ethernet device before registration
SVN-Revision: 18071
This commit is contained in:
parent
b4d03a2780
commit
ebaa6a2fab
@ -593,6 +593,13 @@ void __init ar71xx_add_device_eth(unsigned int id)
|
||||
ar71xx_eth_instance);
|
||||
}
|
||||
|
||||
/* Reset the device */
|
||||
ar71xx_device_stop(pdata->reset_bit);
|
||||
mdelay(100);
|
||||
|
||||
ar71xx_device_start(pdata->reset_bit);
|
||||
mdelay(100);
|
||||
|
||||
platform_device_register(pdev);
|
||||
ar71xx_eth_instance++;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user