From: Jonas Gorski Date: Sun, 15 Mar 2015 14:19:28 +0000 (+0000) Subject: b53: global config is part of the management page, not the control page X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;h=a39dd112702c53dda3f01e1b682a078bd2552614;p=openwrt%2Fsvn-archive%2Farchive.git b53: global config is part of the management page, not the control page It will now actually enable the mib counters instead of enabling rx/tx for the first switch port. Reported-by: Daniel Gonzalez Signed-off-by: Jonas Gorski SVN-Revision: 44788 --- diff --git a/target/linux/generic/files/drivers/net/phy/b53/b53_common.c b/target/linux/generic/files/drivers/net/phy/b53/b53_common.c index b82bc9378d..e44d1945ee 100644 --- a/target/linux/generic/files/drivers/net/phy/b53/b53_common.c +++ b/target/linux/generic/files/drivers/net/phy/b53/b53_common.c @@ -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)