From: Gabor Juhos Date: Mon, 19 Oct 2009 08:07:29 +0000 (+0000) Subject: ar71xx: reset the ethernet device before registration X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=4f0e1cf50b2ce027761f7b04d0b89ad6dc49b82b;p=openwrt%2Fsvn-archive%2Farchive.git ar71xx: reset the ethernet device before registration SVN-Revision: 18071 --- 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++; }