Skip to content

Commit 68bf510

Browse files
Amit Cohenkuba-moo
authored andcommitted
mlxsw: reg: Move 'mpsc' definition in 'mlxsw_reg_infos'
The array 'mlxsw_reg_infos' is ordered by registers' IDs. The ID of MPSC register is 0x9080, so it should be after MCDA (register ID 0x9063) and not after MTUTC (register ID 0x9055). Note that the register's fields are defined in the correct place in the file, only the definition in 'mlxsw_reg_infos' is wrong. This issue was found while adding new register which supposed to be before mpsc. Signed-off-by: Amit Cohen <[email protected]> Reviewed-by: Petr Machata <[email protected]> Signed-off-by: Ido Schimmel <[email protected]> Signed-off-by: Petr Machata <[email protected]> Link: https://lore.kernel.org/r/c5e270cd5769f301fe81235622215143506e1b48.1690281940.git.petrm@nvidia.com Signed-off-by: Jakub Kicinski <[email protected]>
1 parent c1b0b61 commit 68bf510

File tree

1 file changed

+1
-1
lines changed
  • drivers/net/ethernet/mellanox/mlxsw

1 file changed

+1
-1
lines changed

drivers/net/ethernet/mellanox/mlxsw/reg.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12974,10 +12974,10 @@ static const struct mlxsw_reg_info *mlxsw_reg_infos[] = {
1297412974
MLXSW_REG(mcion),
1297512975
MLXSW_REG(mtpps),
1297612976
MLXSW_REG(mtutc),
12977-
MLXSW_REG(mpsc),
1297812977
MLXSW_REG(mcqi),
1297912978
MLXSW_REG(mcc),
1298012979
MLXSW_REG(mcda),
12980+
MLXSW_REG(mpsc),
1298112981
MLXSW_REG(mgpc),
1298212982
MLXSW_REG(mprs),
1298312983
MLXSW_REG(mogcr),

0 commit comments

Comments
 (0)