aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_iface.c
diff options
context:
space:
mode:
authorMykola Kostenok <c_mykolak@nvidia.com>2021-06-08 15:44:14 +0300
committerDavid S. Miller <davem@davemloft.net>2021-06-08 14:39:07 -0700
commit72a64c2fe9d8a08c9c57fc22adc1b44d13f97cac (patch)
tree3890a3770d12c5cb30714352e6dad96f40a060ec /net/lapb/lapb_iface.c
parente57977b34ab5d52d73bc0b8b2ff941ac21d7166f (diff)
downloadlinux-72a64c2fe9d8a08c9c57fc22adc1b44d13f97cac.tar.gz
linux-72a64c2fe9d8a08c9c57fc22adc1b44d13f97cac.tar.bz2
linux-72a64c2fe9d8a08c9c57fc22adc1b44d13f97cac.zip
mlxsw: thermal: Read module temperature thresholds using MTMP register
mlxsw_thermal_module_trips_update() is used to update the trip points of the module's thermal zone. Currently, this is done by querying the thresholds from the module's EEPROM via MCIA register. This data does not pass validation and in some cases can be unreliable. For example, due to some problem with transceiver module. Previous patch made it possible to read module's temperature and thresholds via MTMP register. Therefore, extend mlxsw_thermal_module_trips_update() to use the thresholds queried from MTMP, if valid. This is both more reliable and more efficient than current method, as temperature and thresholds are queried in one transaction instead of three. This is significant when working over a slow bus such as I2C. Signed-off-by: Mykola Kostenok <c_mykolak@nvidia.com> Acked-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 'net/lapb/lapb_iface.c')
0 files changed, 0 insertions, 0 deletions