diff options
author | Felix Fietkau <nbd@openwrt.org> | 2011-05-30 23:07:57 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2011-05-30 23:07:57 +0000 |
commit | 0ebc93831f6f1527533bcbc22dd78b888a8ccc10 (patch) | |
tree | 678266809c2bc28f4e9380913890edbe7477a493 | |
parent | 6e43f65dc47855c8b3430b346aadf9590efb079e (diff) | |
download | upstream-0ebc93831f6f1527533bcbc22dd78b888a8ccc10.tar.gz upstream-0ebc93831f6f1527533bcbc22dd78b888a8ccc10.tar.bz2 upstream-0ebc93831f6f1527533bcbc22dd78b888a8ccc10.zip |
ar71xx: disable flow control for ar724x, it can get stuck in a loop of continously sending MAC pause frames
SVN-Revision: 27034
-rw-r--r-- | target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_main.c | 6 |
1 files changed, 1 insertions, 5 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 2b28faab7a..08735a99ac 100644 --- a/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_main.c +++ b/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_main.c @@ -524,11 +524,7 @@ static void ag71xx_hw_init(struct ag71xx *ag) mdelay(100); /* setup MAC configuration registers */ - if (pdata->is_ar724x) - ag71xx_wr(ag, AG71XX_REG_MAC_CFG1, - MAC_CFG1_INIT | MAC_CFG1_TFC | MAC_CFG1_RFC); - else - ag71xx_wr(ag, AG71XX_REG_MAC_CFG1, MAC_CFG1_INIT); + ag71xx_wr(ag, AG71XX_REG_MAC_CFG1, MAC_CFG1_INIT); ag71xx_sb(ag, AG71XX_REG_MAC_CFG2, MAC_CFG2_PAD_CRC_EN | MAC_CFG2_LEN_CHECK); |