ar71xx: on ar724x only reset the link status in the restart handler, the fast reset...
authorFelix Fietkau <nbd@openwrt.org>
Sat, 13 Aug 2011 21:49:46 +0000 (21:49 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Sat, 13 Aug 2011 21:49:46 +0000 (21:49 +0000)
SVN-Revision: 27973

target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_main.c

index ed9e7b9ea06a82520d926b93c2a3ed5e915e692f..ee76c9a03d46b3818ad7b249afc223164ef671a7 100644 (file)
@@ -795,6 +795,12 @@ static void ag71xx_restart_work_func(struct work_struct *work)
 {
        struct ag71xx *ag = container_of(work, struct ag71xx, restart_work);
 
+       if (ag71xx_get_pdata(ag)->is_ar724x) {
+               ag->link = 0;
+               ag71xx_link_adjust(ag);
+               return;
+       }
+
        ag71xx_stop(ag->dev);
        ag71xx_open(ag->dev);
 }