diff options
author | Ido Schimmel <idosch@nvidia.com> | 2024-04-18 16:46:08 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2024-04-20 06:43:15 +0300 |
commit | 773501d01e6bc3f2557882a25679392d982d5f3e (patch) | |
tree | 93edc3d2dafbe3efe1399c41839b4da12107728a /.rustfmt.toml | |
parent | 7e2050a8366315aeaf0316b3d362e67cf58f3ea8 (diff) | |
download | linux-773501d01e6bc3f2557882a25679392d982d5f3e.tar.xz |
mlxsw: pci: Fix driver initialization with old firmware
The driver queries the Management Capabilities Mask (MCAM) register
during initialization to understand if a new and deeper reset flow is
supported.
However, not all firmware versions support this register, leading to the
driver failing to load.
Fix by treating an error in the register query as an indication that the
feature is not supported.
Fixes: f257c73e5356 ("mlxsw: pci: Add support for new reset flow")
Reported-by: Tim 'mithro' Ansell <me@mith.ro>
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Reviewed-by: Petr Machata <petrm@nvidia.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Reviewed-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
Signed-off-by: Petr Machata <petrm@nvidia.com>
Link: https://lore.kernel.org/r/ee968c49d53bac96a4c66d1b09ebbd097d81aca5.1713446092.git.petrm@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to '.rustfmt.toml')
0 files changed, 0 insertions, 0 deletions