]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
mlxsw: reg: Limit MTBR register payload to a single data record
authorVadim Pasternak <vadimp@nvidia.com>
Fri, 22 Sep 2023 17:18:36 +0000 (19:18 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 2 Oct 2023 07:07:12 +0000 (08:07 +0100)
commitc755655c3d8b2a4afe9610ec58a41c08d62c8ec0
treecb17723076d89f81cb89531e2eb81d5de5d7fef8
parentfbff653a40f6a806edf54e1f5003d2c4eb510b6a
mlxsw: reg: Limit MTBR register payload to a single data record

The MTBR register is used to read temperatures from multiple sensors in
one transaction, but the driver only reads from a single sensor in each
transaction.

Rrestrict the payload size of the MTBR register to prevent the
transmission of redundant data to the firmware.

Signed-off-by: Vadim Pasternak <vadimp@nvidia.com>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: Petr Machata <petrm@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/core_env.c
drivers/net/ethernet/mellanox/mlxsw/core_hwmon.c
drivers/net/ethernet/mellanox/mlxsw/reg.h