aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/files
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2011-08-13 21:49:46 +0000
committerFelix Fietkau <nbd@openwrt.org>2011-08-13 21:49:46 +0000
commit02c8410ffdec76e7f796c843d6d376633b6fc6e5 (patch)
tree350f237590bae05118f4b3d0f9f2f73258de5fdf /target/linux/ar71xx/files
parente5fe55aa468779413dfd676633a93c5fb9a662b3 (diff)
downloadupstream-02c8410ffdec76e7f796c843d6d376633b6fc6e5.tar.gz
upstream-02c8410ffdec76e7f796c843d6d376633b6fc6e5.tar.bz2
upstream-02c8410ffdec76e7f796c843d6d376633b6fc6e5.zip
ar71xx: on ar724x only reset the link status in the restart handler, the fast reset takes care of DMA stuck issues
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27973 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ar71xx/files')
-rw-r--r--target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_main.c6
1 files changed, 6 insertions, 0 deletions
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 ed9e7b9ea0..ee76c9a03d 100644
--- a/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_main.c
+++ b/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_main.c
@@ -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);
}