diff options
author | Danielle Ratson <danieller@nvidia.com> | 2021-11-23 09:52:55 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-11-23 11:46:18 +0000 |
commit | ce4995bc6c8eec9685707e36c3f38aea3c8694fa (patch) | |
tree | 302854cb7e53209e324ca080b4f3826131b193ed /drivers/pwm/pwm-lpss-platform.c | |
parent | 5789d04b77126752ab1d70c7f7fc00d65401cb1d (diff) | |
download | linux-ce4995bc6c8eec9685707e36c3f38aea3c8694fa.tar.bz2 |
mlxsw: spectrum: Allow driver to load with old firmware versions
The driver fails to load with old firmware versions that cannot report
the maximum number of RIF MAC profiles [1].
Fix this by defaulting to a maximum of a single profile in such
situations, as multiple profiles are not supported by old firmware
versions.
[1]
mlxsw_spectrum 0000:03:00.0: cannot register bus device
mlxsw_spectrum: probe of 0000:03:00.0 failed with error -5
Fixes: 1c375ffb2efab ("mlxsw: spectrum_router: Expose RIF MAC profiles to devlink resource")
Signed-off-by: Danielle Ratson <danieller@nvidia.com>
Reported-by: Vadim Pasternak <vadimp@nvidia.com>
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/pwm/pwm-lpss-platform.c')
0 files changed, 0 insertions, 0 deletions