This patchset extends mlxsw hwmon and thermal modules with ports temperature reading and adds new hwmon attributes for FAN and temperature.
Ports temperatures are most critical component in system thermal control and should be considered by thermal algorithm. New hwmon attributes, such as FAN faults, port temperature fault will improve system monitoring abilities. Vadim Pasternak (12): mlxsw: spectrum: Move QSFP EEPROM defenitons to common location mlxsw: reg: Add MTBR register mlxsw: core: Add core environment module for port temperature reading mlxsw: core: Add bus frequency capability flag for the bus type mlxsw: core: Set different thermal polling time based on bus type mlxsw: core: Modify thermal zone definition mlxsw: core: Extend thermal zone operations with get_trend method mlxsw: core: Extend cooling device with cooling levels mlxsw: core: Rename cooling device mlxsw: core: Add ports temperature measurement to thermal algorithm mlxsw: core: Extend hwmon interface with FAN fault attribute mlxsw: core: Extend hwmon interface with port temperature attributes drivers/net/ethernet/mellanox/mlxsw/Makefile | 2 +- drivers/net/ethernet/mellanox/mlxsw/core.h | 1 + drivers/net/ethernet/mellanox/mlxsw/core_env.c | 316 +++++++++++++++++++++ drivers/net/ethernet/mellanox/mlxsw/core_env.h | 63 ++++ drivers/net/ethernet/mellanox/mlxsw/core_hwmon.c | 164 ++++++++++- drivers/net/ethernet/mellanox/mlxsw/core_thermal.c | 231 +++++++++++++-- drivers/net/ethernet/mellanox/mlxsw/i2c.c | 1 + drivers/net/ethernet/mellanox/mlxsw/reg.h | 101 ++++++- drivers/net/ethernet/mellanox/mlxsw/spectrum.c | 62 ++-- 9 files changed, 865 insertions(+), 76 deletions(-) create mode 100644 drivers/net/ethernet/mellanox/mlxsw/core_env.c create mode 100644 drivers/net/ethernet/mellanox/mlxsw/core_env.h -- 2.1.4