ar71xx: set a reserved bit that resets to 1 when writing the address table control...
authorFelix Fietkau <nbd@openwrt.org>
Thu, 22 Dec 2011 05:43:53 +0000 (05:43 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Thu, 22 Dec 2011 05:43:53 +0000 (05:43 +0000)
SVN-Revision: 29598

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

index 60ee60b7da336284cc099eb3a4be5ff27fc4e16e..491127d0503b8863617a98f9f92694ecbc01b340 100644 (file)
@@ -66,6 +66,7 @@
 #define AR7240_AT_CTRL_AGE_TIME                BITS(0, 15)
 #define AR7240_AT_CTRL_AGE_EN          BIT(17)
 #define AR7240_AT_CTRL_LEARN_CHANGE    BIT(18)
+#define AR7240_AT_CTRL_RESERVED                BIT(19)
 #define AR7240_AT_CTRL_ARP_EN          BIT(20)
 
 #define AR7240_REG_TAG_PRIORITY                0x70
@@ -470,6 +471,7 @@ static void ar7240sw_setup(struct ar7240sw *as)
 
        /* Enable ARP frame acknowledge, aging, MAC replacing */
        ar7240sw_reg_write(mii, AR7240_REG_AT_CTRL,
+               AR7240_AT_CTRL_RESERVED |
                0x2b /* 5 min age time */ |
                AR7240_AT_CTRL_AGE_EN |
                AR7240_AT_CTRL_ARP_EN |