]> git.baikalelectronics.ru Git - kernel.git/commit
net: ethernet: mtk_eth_soc: Fix packet statistics support for MT7628/88
authorStefan Roese <sr@denx.de>
Sat, 22 May 2021 07:56:30 +0000 (09:56 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 23 May 2021 23:13:11 +0000 (16:13 -0700)
commitad79fd2c42f7626bdf6935cd72134c2a5a59ff2d
treebed000c2ee8debe2084cf2934514c84889905c01
parent1e69abf98921fa27e2064970b614502d85230f9f
net: ethernet: mtk_eth_soc: Fix packet statistics support for MT7628/88

The MT7628/88 SoC(s) have other (limited) packet counter registers than
currently supported in the mtk_eth_soc driver. This patch adds support
for reading these registers, so that the packet statistics are correctly
updated.

Additionally the defines for the non-MT7628 variant packet counter
registers are added and used in this patch instead of using hard coded
values.

Signed-off-by: Stefan Roese <sr@denx.de>
Fixes: 296c9120752b ("net: ethernet: mediatek: Add MT7628/88 SoC support")
Cc: Felix Fietkau <nbd@nbd.name>
Cc: John Crispin <john@phrozen.org>
Cc: Ilya Lipnitskiy <ilya.lipnitskiy@gmail.com>
Cc: Reto Schneider <code@reto-schneider.ch>
Cc: Reto Schneider <reto.schneider@husqvarnagroup.com>
Cc: David S. Miller <davem@davemloft.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mediatek/mtk_eth_soc.c
drivers/net/ethernet/mediatek/mtk_eth_soc.h