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 90869a88e6075b1a304c968a8c425c5655a22820..7c08bc997fb2d77b382e78c32634fae13ae4be1d 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++;
 }