b53: global config is part of the management page, not the control page
authorJonas Gorski <jogo@openwrt.org>
Sun, 15 Mar 2015 14:19:28 +0000 (14:19 +0000)
committerJonas Gorski <jogo@openwrt.org>
Sun, 15 Mar 2015 14:19:28 +0000 (14:19 +0000)
It will now actually enable the mib counters instead of enabling rx/tx for
the first switch port.

Reported-by: Daniel Gonzalez <dgcbueu@gmail.com>
Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 44788

target/linux/generic/files/drivers/net/phy/b53/b53_common.c

index b82bc9378d9ca8d72edaafff798680c7b9bc6ecc..e44d1945ee9cbbbcd02c531cfa890b6144c8ca10 100644 (file)
@@ -408,11 +408,11 @@ static void b53_enable_mib(struct b53_device *dev)
 {
        u8 gc;
 
-       b53_read8(dev, B53_CTRL_PAGE, B53_GLOBAL_CONFIG, &gc);
+       b53_read8(dev, B53_MGMT_PAGE, B53_GLOBAL_CONFIG, &gc);
 
        gc &= ~(GC_RESET_MIB | GC_MIB_AC_EN);
 
-       b53_write8(dev, B53_CTRL_PAGE, B53_GLOBAL_CONFIG, gc);
+       b53_write8(dev, B53_MGMT_PAGE, B53_GLOBAL_CONFIG, gc);
 }
 
 static int b53_apply(struct b53_device *dev)