ar71xx: disable flow control for ar724x, it can get stuck in a loop of continously...
authorFelix Fietkau <nbd@openwrt.org>
Mon, 30 May 2011 23:07:57 +0000 (23:07 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Mon, 30 May 2011 23:07:57 +0000 (23:07 +0000)
SVN-Revision: 27034

target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_main.c

index 2b28faab7a97f0bfb55942e9b5edde96f77e97c3..08735a99ac0010f61314d1a767b2b314592eb920 100644 (file)
@@ -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);