Merge branch 'mlxsw-fixes'
authorJakub Kicinski <kuba@kernel.org>
Sat, 20 Apr 2024 03:43:17 +0000 (20:43 -0700)
committerJakub Kicinski <kuba@kernel.org>
Sat, 20 Apr 2024 03:43:17 +0000 (20:43 -0700)
commita9176f7c66f0f438dfd9a1a6c86ca7b73280a494
tree93edc3d2dafbe3efe1399c41839b4da12107728a
parent9f898fc2c31fbf0ac5ecd289f528a716464cb005
parent773501d01e6bc3f2557882a25679392d982d5f3e
Merge branch 'mlxsw-fixes'

Petr Machata says:

====================
mlxsw: Fixes

This patchset fixes the following issues:

- During driver de-initialization the driver unregisters the EMAD
  response trap by setting its action to DISCARD. However the manual
  only permits TRAP and FORWARD, and future firmware versions will
  enforce this.

  In patch #1, suppress the error message by aligning the driver to the
  manual and use a FORWARD (NOP) action when unregistering the trap.

- The driver queries the Management Capabilities Mask (MCAM) register
  during initialization to understand if certain features are supported.

  However, not all firmware versions support this register, leading to
  the driver failing to load.

  Patches #2 and #3 fix this issue by treating an error in the register
  query as an indication that the feature is not supported.

v2:
- Patch #2:
    - Make mlxsw_env_max_module_eeprom_len_query() void
====================

Link: https://lore.kernel.org/r/cover.1713446092.git.petrm@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>