summaryrefslogtreecommitdiff
path: root/target/linux
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
commit85ccc74e1b939e567e4d013b6ef3a25097e81bf0 (patch)
tree751bc269e431831fdfd9e6d60d948a79300a0a45 /target/linux
parentf681253412cc84e5b60eb54448f0768ecaa6881a (diff)
downloadmtk-20170518-85ccc74e1b939e567e4d013b6ef3a25097e81bf0.zip
mtk-20170518-85ccc74e1b939e567e4d013b6ef3a25097e81bf0.tar.gz
mtk-20170518-85ccc74e1b939e567e4d013b6ef3a25097e81bf0.tar.bz2
ar71xx: on ar724x only reset the link status in the restart handler, the fast reset takes care of DMA stuck issues
SVN-Revision: 27973
Diffstat (limited to 'target/linux')
-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 ed9e7b9..ee76c9a 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);
}