From: Felix Fietkau Date: Sat, 13 Aug 2011 21:50:32 +0000 (+0000) Subject: ar71xx: on ar724x only reset the link status in the restart handler, the fast reset... X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fsvn-archive%2Farchive.git;a=commitdiff_plain;hb=f8022a69c9b6ae194e278d38a71a37f3ce10a304 ar71xx: on ar724x only reset the link status in the restart handler, the fast reset takes care of DMA stuck issues, backport of r27973 SVN-Revision: 27974 --- diff --git a/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_main.c b/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_main.c index 70cf876124..8e25d4a1f4 100644 --- a/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_main.c +++ b/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_main.c @@ -796,6 +796,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); }