aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/generic/files
diff options
context:
space:
mode:
authorJonas Gorski <jogo@openwrt.org>2015-03-15 14:19:28 +0000
committerJonas Gorski <jogo@openwrt.org>2015-03-15 14:19:28 +0000
commit309b8df12545a95901bea736ef702c5f79494187 (patch)
tree8c78be679db230da224dcc352d1caed019c5dfff /target/linux/generic/files
parent784dac57be30384d9fdcb341d3869852b7fde777 (diff)
downloadupstream-309b8df12545a95901bea736ef702c5f79494187.tar.gz
upstream-309b8df12545a95901bea736ef702c5f79494187.tar.bz2
upstream-309b8df12545a95901bea736ef702c5f79494187.zip
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 <dgcbueu@gmail.com> Signed-off-by: Jonas Gorski <jogo@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44788 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/generic/files')
-rw-r--r--target/linux/generic/files/drivers/net/phy/b53/b53_common.c4
1 files changed, 2 insertions, 2 deletions
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)