2023-09-06 03:32:08 -05:00
|
|
|
From 4b630e780a6fa8b387e79e252169d5743faf5321 Mon Sep 17 00:00:00 2001
|
2023-04-10 11:48:27 -05:00
|
|
|
From: Vadim Pasternak <vadimp@nvidia.com>
|
|
|
|
Date: Fri, 3 Dec 2021 11:48:49 +0200
|
2023-09-06 03:32:08 -05:00
|
|
|
Subject: [PATCH backport 5.10 111/182] mlxsw: reg: Add new field to Management
|
|
|
|
General Peripheral Information Register
|
2023-04-10 11:48:27 -05:00
|
|
|
|
|
|
|
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>
|
|
|
|
---
|
|
|
|
drivers/net/ethernet/mellanox/mlxsw/reg.h | 6 ++++++
|
|
|
|
1 file changed, 6 insertions(+)
|
|
|
|
|
|
|
|
diff --git a/drivers/net/ethernet/mellanox/mlxsw/reg.h b/drivers/net/ethernet/mellanox/mlxsw/reg.h
|
2023-09-06 03:32:08 -05:00
|
|
|
index 07f68fd1a4e5..98c627ffe039 100644
|
2023-04-10 11:48:27 -05:00
|
|
|
--- a/drivers/net/ethernet/mellanox/mlxsw/reg.h
|
|
|
|
+++ b/drivers/net/ethernet/mellanox/mlxsw/reg.h
|
2023-09-06 03:32:08 -05:00
|
|
|
@@ -10190,6 +10190,12 @@ MLXSW_ITEM32(reg, mgpir, devices_per_flash, 0x00, 16, 8);
|
2023-04-10 11:48:27 -05:00
|
|
|
*/
|
|
|
|
MLXSW_ITEM32(reg, mgpir, num_of_devices, 0x00, 0, 8);
|
|
|
|
|
|
|
|
+/* max_modules_per_slot
|
|
|
|
+ * Maximum number of modules that can be connected per slot.
|
|
|
|
+ * Access: RO
|
|
|
|
+ */
|
|
|
|
+MLXSW_ITEM32(reg, mgpir, max_modules_per_slot, 0x04, 16, 8);
|
|
|
|
+
|
|
|
|
/* mgpir_num_of_slots
|
|
|
|
* Number of slots in the system.
|
|
|
|
* Access: RO
|
|
|
|
--
|
2023-09-06 03:32:08 -05:00
|
|
|
2.20.1
|
2023-04-10 11:48:27 -05:00
|
|
|
|