linux/drivers/net/ethernet/mscc
Colin Foster 9e62a49608 net: mscc: ocelot: fix stat counter register values
[ Upstream commit cdc2e28e21 ]

Commit d4c3676507 ("net: mscc: ocelot: keep ocelot_stat_layout by reg
address, not offset") organized the stats counters for Ocelot chips, namely
the VSC7512 and VSC7514. A few of the counter offsets were incorrect, and
were caught by this warning:

WARNING: CPU: 0 PID: 24 at drivers/net/ethernet/mscc/ocelot_stats.c:909
ocelot_stats_init+0x1fc/0x2d8
reg 0x5000078 had address 0x220 but reg 0x5000079 has address 0x214,
bulking broken!

Fix these register offsets.

Fixes: d4c3676507 ("net: mscc: ocelot: keep ocelot_stat_layout by reg address, not offset")
Signed-off-by: Colin Foster <colin.foster@in-advantage.com>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-05-24 17:32:32 +01:00
..
Kconfig
Makefile
ocelot_devlink.c
ocelot_fdma.c
ocelot_fdma.h
ocelot_flower.c
ocelot_io.c
ocelot_mrp.c
ocelot_net.c
ocelot_police.c
ocelot_police.h
ocelot_ptp.c
ocelot_qs.h
ocelot_rew.h
ocelot_stats.c net: mscc: ocelot: fix stats region batching 2023-04-06 12:10:37 +02:00
ocelot_vcap.c
ocelot_vcap.h
ocelot_vsc7514.c
ocelot.c
ocelot.h
vsc7514_regs.c net: mscc: ocelot: fix stat counter register values 2023-05-24 17:32:32 +01:00