aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/files
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2010-07-04 02:15:08 +0000
committerFelix Fietkau <nbd@openwrt.org>2010-07-04 02:15:08 +0000
commite12c89f6375a753d0785b022eef179f7b00c30fc (patch)
treebb4dd1ca5b916e6bf0cad35254b60191c61c1819 /target/linux/ar71xx/files
parentd7965cb88259a852583953db920692727261458f (diff)
downloadupstream-e12c89f6375a753d0785b022eef179f7b00c30fc.tar.gz
upstream-e12c89f6375a753d0785b022eef179f7b00c30fc.tar.bz2
upstream-e12c89f6375a753d0785b022eef179f7b00c30fc.zip
ag71xx: reset the hardware during open(), this improves recovery from tx timeouts on ar724x considerably
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22055 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ar71xx/files')
-rw-r--r--target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_main.c2
1 files changed, 2 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 9fd41527dd..4e597ebb5e 100644
--- a/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_main.c
+++ b/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_main.c
@@ -579,6 +579,8 @@ static int ag71xx_open(struct net_device *dev)
if (ret)
goto err;
+ ag71xx_hw_init(ag);
+
napi_enable(&ag->napi);
netif_carrier_off(dev);