]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
mlxsw: reg: Document possible MCIA status values
authorIdo Schimmel <idosch@nvidia.com>
Mon, 21 Jun 2021 07:50:40 +0000 (10:50 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 21 Jun 2021 19:33:04 +0000 (12:33 -0700)
Will be used to emit meaningful messages to user space via extack in a
subsequent patch.

Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/reg.h

index cd60a0f9193374476cdac597ef70e288d1dfc00d..6fbda6ebd59013257838c2e06d14f7ce08235685 100644 (file)
@@ -9690,6 +9690,20 @@ MLXSW_ITEM32(reg, mcia, l, 0x00, 31, 1);
  */
 MLXSW_ITEM32(reg, mcia, module, 0x00, 16, 8);
 
+enum {
+       MLXSW_REG_MCIA_STATUS_GOOD = 0,
+       /* No response from module's EEPROM. */
+       MLXSW_REG_MCIA_STATUS_NO_EEPROM_MODULE = 1,
+       /* Module type not supported by the device. */
+       MLXSW_REG_MCIA_STATUS_MODULE_NOT_SUPPORTED = 2,
+       /* No module present indication. */
+       MLXSW_REG_MCIA_STATUS_MODULE_NOT_CONNECTED = 3,
+       /* Error occurred while trying to access module's EEPROM using I2C. */
+       MLXSW_REG_MCIA_STATUS_I2C_ERROR = 9,
+       /* Module is disabled. */
+       MLXSW_REG_MCIA_STATUS_MODULE_DISABLED = 16,
+};
+
 /* reg_mcia_status
  * Module status.
  * Access: RO