ar71xx: reset the ethernet device before registration
authorGabor Juhos <juhosg@openwrt.org>
Mon, 19 Oct 2009 08:07:29 +0000 (08:07 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Mon, 19 Oct 2009 08:07:29 +0000 (08:07 +0000)
SVN-Revision: 18071

target/linux/ar71xx/files/arch/mips/ar71xx/devices.c

index 90869a8..7c08bc9 100644 (file)
@@ -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++;
 }