Skip to content

Commit e94295e

Browse files
vadimp-nvidiakuba-moo
authored andcommitted
mlxsw: reg: Add new field to Management General Peripheral Information Register
Add new field 'max_modules_per_slot' to provide maximum number of modules that can be connected per slot. This field will always be zero, if 'slot_index' in query request is set to non-zero value, otherwise value in this field will provide maximum modules number, which can be equipped on device inserted at any slot. Signed-off-by: Vadim Pasternak <vadimp@nvidia.com> Signed-off-by: Ido Schimmel <idosch@nvidia.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
1 parent 64e65a5 commit e94295e

File tree

1 file changed

+6
-0
lines changed
  • drivers/net/ethernet/mellanox/mlxsw

1 file changed

+6
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11386,6 +11386,12 @@ MLXSW_ITEM32(reg, mgpir, devices_per_flash, 0x00, 16, 8);
1138611386
*/
1138711387
MLXSW_ITEM32(reg, mgpir, num_of_devices, 0x00, 0, 8);
1138811388

11389+
/* max_modules_per_slot
11390+
* Maximum number of modules that can be connected per slot.
11391+
* Access: RO
11392+
*/
11393+
MLXSW_ITEM32(reg, mgpir, max_modules_per_slot, 0x04, 16, 8);
11394+
1138911395
/* mgpir_num_of_slots
1139011396
* Number of slots in the system.
1139111397
* Access: RO

0 commit comments

Comments
 (0)