mbox series

[net-next,0/3] mlxsw: Add support for module EEPROM read by page

Message ID 20210621075041.2502416-1-idosch@idosch.org
Headers show
Series mlxsw: Add support for module EEPROM read by page | expand

Message

Ido Schimmel June 21, 2021, 7:50 a.m. UTC
From: Ido Schimmel <idosch@nvidia.com>

Add support for ethtool_ops::get_module_eeprom_by_page() operation.

Patch #1 adds necessary field in device register.

Patch #2 documents possible MCIA status values so that more meaningful
error messages could be returned to user space via extack.

Patch #3 adds the actual implementation.

Ido Schimmel (3):
  mlxsw: reg: Add bank number to MCIA register
  mlxsw: reg: Document possible MCIA status values
  mlxsw: core: Add support for module EEPROM read by page

 .../net/ethernet/mellanox/mlxsw/core_env.c    | 74 +++++++++++++++++++
 .../net/ethernet/mellanox/mlxsw/core_env.h    |  7 ++
 drivers/net/ethernet/mellanox/mlxsw/minimal.c | 13 ++++
 drivers/net/ethernet/mellanox/mlxsw/reg.h     | 20 +++++
 .../mellanox/mlxsw/spectrum_ethtool.c         | 14 ++++
 5 files changed, 128 insertions(+)