mlxsw: Enable temperature event for all supported port module sensors
authorAmit Cohen <amcohen@nvidia.com>
Sun, 27 Sep 2020 07:50:12 +0000 (10:50 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sun, 27 Sep 2020 20:27:01 +0000 (13:27 -0700)
commitf21b1a646f812ccc2e56f0d5c804b64f0043ea78
tree80a86c135193ee7f47bee7548bd30272ccb75f0b
parent943585c9eec32135750226e42d3c3510f079bd5e
mlxsw: Enable temperature event for all supported port module sensors

MTWE (Management Temperature Warning Event) is triggered for sensors
whose temperature event enable bit is enabled in the MTMP register.

Enable events for all the modules that have a temperature sensor.

Signed-off-by: Amit Cohen <amcohen@nvidia.com>
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/core_env.c
drivers/net/ethernet/mellanox/mlxsw/reg.h