]> git.baikalelectronics.ru Git - kernel.git/commitdiff
net: mscc: ocelot: fix address of SYS_COUNT_TX_AGING counter
authorVladimir Oltean <vladimir.oltean@nxp.com>
Tue, 16 Aug 2022 13:53:47 +0000 (16:53 +0300)
committerJakub Kicinski <kuba@kernel.org>
Thu, 18 Aug 2022 04:58:31 +0000 (21:58 -0700)
This register, used as part of stats->tx_dropped in
ocelot_get_stats64(), has a wrong address. At the address currently
given, there is actually the c_tx_green_prio_6 counter.

Fixes: 1bed22a67906 ("net: mscc: Add initial Ocelot switch support")
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mscc/vsc7514_regs.c

index 38ab20b48cd439253ca071fe8bd3b3d92cd8e782..8ff935f7f150c4245623a59145af621f1e7d4127 100644 (file)
@@ -202,7 +202,7 @@ const u32 vsc7514_sys_regmap[] = {
        REG(SYS_COUNT_TX_512_1023,                      0x00012c),
        REG(SYS_COUNT_TX_1024_1526,                     0x000130),
        REG(SYS_COUNT_TX_1527_MAX,                      0x000134),
-       REG(SYS_COUNT_TX_AGING,                         0x000170),
+       REG(SYS_COUNT_TX_AGING,                         0x000178),
        REG(SYS_RESET_CFG,                              0x000508),
        REG(SYS_CMID,                                   0x00050c),
        REG(SYS_VLAN_ETYPE_CFG,                         0x000510),