diff options
author | Jonas Gorski <jogo@openwrt.org> | 2015-03-15 14:19:28 +0000 |
---|---|---|
committer | Jonas Gorski <jogo@openwrt.org> | 2015-03-15 14:19:28 +0000 |
commit | 085b8e0014564a2d5e11c45178109c39c8f31a10 (patch) | |
tree | 4f0c5e3432d70a6afde53b7e2ba2b770e45aa8dc /target/linux/generic | |
parent | eed031d4603f5c46055856f6dcce260235ee842f (diff) | |
download | mtk-20170518-085b8e0014564a2d5e11c45178109c39c8f31a10.zip mtk-20170518-085b8e0014564a2d5e11c45178109c39c8f31a10.tar.gz mtk-20170518-085b8e0014564a2d5e11c45178109c39c8f31a10.tar.bz2 |
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>
SVN-Revision: 44788
Diffstat (limited to 'target/linux/generic')
-rw-r--r-- | target/linux/generic/files/drivers/net/phy/b53/b53_common.c | 4 |
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 b82bc93..e44d194 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) |