diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2009-10-19 08:07:29 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2009-10-19 08:07:29 +0000 |
commit | 1698cb518033bda911f116e008020a9c077e5b80 (patch) | |
tree | 7c61defb6b5fc2f61e486f3e1e46430d9b5fda8f /target | |
parent | db56f6acc3217c945c0ae090fd7db5881c119c63 (diff) | |
download | upstream-1698cb518033bda911f116e008020a9c077e5b80.tar.gz upstream-1698cb518033bda911f116e008020a9c077e5b80.tar.bz2 upstream-1698cb518033bda911f116e008020a9c077e5b80.zip |
ar71xx: reset the ethernet device before registration
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18071 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target')
-rw-r--r-- | target/linux/ar71xx/files/arch/mips/ar71xx/devices.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/target/linux/ar71xx/files/arch/mips/ar71xx/devices.c b/target/linux/ar71xx/files/arch/mips/ar71xx/devices.c index 90869a88e6..7c08bc997f 100644 --- a/target/linux/ar71xx/files/arch/mips/ar71xx/devices.c +++ b/target/linux/ar71xx/files/arch/mips/ar71xx/devices.c @@ -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++; } |