]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: thermal: Provide optimization for QSFP modules number detection
authorVadim Pasternak <vadimp@mellanox.com>
Sun, 6 Oct 2019 06:34:50 +0000 (09:34 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sun, 6 Oct 2019 16:31:39 +0000 (18:31 +0200)
commit24773d911930c05042d67d8051c38bdd9e67b600
tree69c35c15b77bb683677b892034b0da3edb5f9d55
parentf9445d3866c32e31e0225b0be66f9a890fdceaeb
mlxsw: thermal: Provide optimization for QSFP modules number detection

Use new field "num_of_modules" of MGPIR register for "thermal" interface
in order to get the number of modules supported by system directly from
the system configuration, instead of getting it from port to module
mapping info.

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