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 | ebaa6a2fab0e5ad860d8f83b3f0e539e4458503b (patch) | |
tree | 3e9a95f9a9da6bf951be69974f00738b8e93bda5 /target/linux | |
parent | b4d03a27803299a9fce03cdf8c012b4ce774d101 (diff) | |
download | mtk-20170518-ebaa6a2fab0e5ad860d8f83b3f0e539e4458503b.zip mtk-20170518-ebaa6a2fab0e5ad860d8f83b3f0e539e4458503b.tar.gz mtk-20170518-ebaa6a2fab0e5ad860d8f83b3f0e539e4458503b.tar.bz2 |
ar71xx: reset the ethernet device before registration
SVN-Revision: 18071
Diffstat (limited to 'target/linux')
-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 90869a8..7c08bc9 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++; } |