diff options
author | Colin Foster <[email protected]> | 2023-05-09 21:48:51 -0700 |
---|---|---|
committer | David S. Miller <[email protected]> | 2023-05-10 12:11:18 +0100 |
commit | cdc2e28e214fe9315cdd7e069c1c8e2428f93427 (patch) | |
tree | a730141cfb8d8711f80a9318e16b8c86d6f177d1 /drivers/fpga/fpga-bridge.c | |
parent | 90cbed5247439a966b645b34eb0a2e037836ea8e (diff) |
net: mscc: ocelot: fix stat counter register values
Commit d4c367650704 ("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: d4c367650704 ("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]>
Diffstat (limited to 'drivers/fpga/fpga-bridge.c')
0 files changed, 0 insertions, 0 deletions