mlxsw: spectrum: Allow lane to start from non-zero index
authorJiri Pirko <jiri@nvidia.com>
Mon, 18 Apr 2022 06:42:29 +0000 (09:42 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 18 Apr 2022 10:00:18 +0000 (11:00 +0100)
commitbac62191a3d4dddc4dbfddb4187d4952380c29c7
tree518735c450e6b0ddbf915dc131f25f5575080948
parentb837585985386e05478cb17868d23a6fa87c4f8d
mlxsw: spectrum: Allow lane to start from non-zero index

So far, the lane index always started from zero. That is not true for
modular systems with gearbox-equipped linecards. Loose the check so the
lanes can start from non-zero index.

Signed-off-by: Jiri Pirko <jiri@nvidia.com>
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum.c