ar71xx: reset the ethernet device before registration
authorjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Mon, 19 Oct 2009 08:07:29 +0000 (08:07 +0000)
committerjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Mon, 19 Oct 2009 08:07:29 +0000 (08:07 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18071 3c298f89-4303-0410-b956-a3cf2f4a3e73

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++;
 }