mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-01-26 22:01:06 +02:00
ar71xx: reset the ethernet device before registration
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18071 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
85de4df7c1
commit
53a0966f40
@ -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…
x
Reference in New Issue
Block a user