]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: reg: Extend MCIA register with new slot number field
authorVadim Pasternak <vadimp@nvidia.com>
Mon, 11 Apr 2022 14:46:52 +0000 (17:46 +0300)
committerJakub Kicinski <kuba@kernel.org>
Tue, 12 Apr 2022 16:51:38 +0000 (09:51 -0700)
commit8fd47da8200cd6fe2ee26c12bdbd8115df11fee7
tree6c9c7ad4bd4ec9960fb22381c85b0ef7de979d91
parent9b2c6d1e7a1306f5b1f4312a4ed519c27b7a328b
mlxsw: reg: Extend MCIA register with new slot number field

Extend MCIA (Management Cable Info Access Register) with new field
specifying the slot number. The purpose of this field is to support
access to MCIA register for reading cage cable information on modular
system. For non-modular systems the 'module' number uniquely identifies
the transceiver location. For modular systems the transceivers are
identified by two indexes:
- 'slot_index', specifying the slot number, where line card is located;
- 'module', specifying cage transceiver within the line card.

Signed-off-by: Vadim Pasternak <vadimp@nvidia.com>
Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlxsw/core_env.c
drivers/net/ethernet/mellanox/mlxsw/reg.h