Skip to content

Commit cdc2e28

Browse files
colin-foster-in-advantagedavem330
authored andcommitted
net: mscc: ocelot: fix stat counter register values
Commit d4c3676 ("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: d4c3676 ("net: mscc: ocelot: keep ocelot_stat_layout by reg address, not offset") Signed-off-by: Colin Foster <[email protected]> Reviewed-by: Simon Horman <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 90cbed5 commit cdc2e28

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

drivers/net/ethernet/mscc/vsc7514_regs.c

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -307,15 +307,15 @@ static const u32 vsc7514_sys_regmap[] = {
307307
REG(SYS_COUNT_DROP_YELLOW_PRIO_4, 0x000218),
308308
REG(SYS_COUNT_DROP_YELLOW_PRIO_5, 0x00021c),
309309
REG(SYS_COUNT_DROP_YELLOW_PRIO_6, 0x000220),
310-
REG(SYS_COUNT_DROP_YELLOW_PRIO_7, 0x000214),
311-
REG(SYS_COUNT_DROP_GREEN_PRIO_0, 0x000218),
312-
REG(SYS_COUNT_DROP_GREEN_PRIO_1, 0x00021c),
313-
REG(SYS_COUNT_DROP_GREEN_PRIO_2, 0x000220),
314-
REG(SYS_COUNT_DROP_GREEN_PRIO_3, 0x000224),
315-
REG(SYS_COUNT_DROP_GREEN_PRIO_4, 0x000228),
316-
REG(SYS_COUNT_DROP_GREEN_PRIO_5, 0x00022c),
317-
REG(SYS_COUNT_DROP_GREEN_PRIO_6, 0x000230),
318-
REG(SYS_COUNT_DROP_GREEN_PRIO_7, 0x000234),
310+
REG(SYS_COUNT_DROP_YELLOW_PRIO_7, 0x000224),
311+
REG(SYS_COUNT_DROP_GREEN_PRIO_0, 0x000228),
312+
REG(SYS_COUNT_DROP_GREEN_PRIO_1, 0x00022c),
313+
REG(SYS_COUNT_DROP_GREEN_PRIO_2, 0x000230),
314+
REG(SYS_COUNT_DROP_GREEN_PRIO_3, 0x000234),
315+
REG(SYS_COUNT_DROP_GREEN_PRIO_4, 0x000238),
316+
REG(SYS_COUNT_DROP_GREEN_PRIO_5, 0x00023c),
317+
REG(SYS_COUNT_DROP_GREEN_PRIO_6, 0x000240),
318+
REG(SYS_COUNT_DROP_GREEN_PRIO_7, 0x000244),
319319
REG(SYS_RESET_CFG, 0x000508),
320320
REG(SYS_CMID, 0x00050c),
321321
REG(SYS_VLAN_ETYPE_CFG, 0x000510),

0 commit comments

Comments
 (0)