mlxsw: reg: Add high and low temperature thresholds

Linux Kernel / Linux Kernel - Ido Schimmel [mellanox.com] - 1 November 2017 03:25 EDT

The ASIC has the ability to generate events whenever a sensor indicates the temperature goes above or below its high or low thresholds, respectively.

In new firmware versions the firmware enforces a minimum of 5 degrees Celsius difference between both thresholds. Make the driver conform to this requirement.

Note that this is required even when the events are disabled, as in certain systems interrupts are generated via GPIO based on these thresholds.

Fixes: 85926f877040 ("mlxsw: reg: Add definition of temperature management registers")

62b0e9243fca mlxsw: reg: Add high and low temperature thresholds
drivers/net/ethernet/mellanox/mlxsw/reg.h | 25 +++++++++++++++++++++++++
1 file changed, 25 insertions(+)

Upstream: git.kernel.org


  • Share