Skip to content
/ linux Public

Commit cecefb3

Browse files
idoschdavem330
authored andcommitted
mlxsw: reg: Document possible MCIA status values
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>
1 parent d51ea60 commit cecefb3

File tree

1 file changed

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

1 file changed

+14
-0
lines changed

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

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9690,6 +9690,20 @@ MLXSW_ITEM32(reg, mcia, l, 0x00, 31, 1);
96909690
*/
96919691
MLXSW_ITEM32(reg, mcia, module, 0x00, 16, 8);
96929692

9693+
enum {
9694+
MLXSW_REG_MCIA_STATUS_GOOD = 0,
9695+
/* No response from module's EEPROM. */
9696+
MLXSW_REG_MCIA_STATUS_NO_EEPROM_MODULE = 1,
9697+
/* Module type not supported by the device. */
9698+
MLXSW_REG_MCIA_STATUS_MODULE_NOT_SUPPORTED = 2,
9699+
/* No module present indication. */
9700+
MLXSW_REG_MCIA_STATUS_MODULE_NOT_CONNECTED = 3,
9701+
/* Error occurred while trying to access module's EEPROM using I2C. */
9702+
MLXSW_REG_MCIA_STATUS_I2C_ERROR = 9,
9703+
/* Module is disabled. */
9704+
MLXSW_REG_MCIA_STATUS_MODULE_DISABLED = 16,
9705+
};
9706+
96939707
/* reg_mcia_status
96949708
* Module status.
96959709
* Access: RO

0 commit comments

Comments
 (0)