From: Ido Schimmel <[email protected]> Date: Sun, 7 Jun 2020 11:10:27 +0300
> From: Vadim Pasternak <[email protected]> > > The driver registers three different types of thermal zones: For the > ASIC itself, for port modules and for gearboxes. > > Currently, all three types use the same get_trend() callback which does > not work correctly for the ASIC thermal zone. The callback assumes that > the device data is of type 'struct mlxsw_thermal_module', whereas for > the ASIC thermal zone 'struct mlxsw_thermal' is passed as device data. > > Fix this by using one get_trend() callback for the ASIC thermal zone and > another for the other two types. > > Fixes: 6f73862fabd9 ("mlxsw: core: Add the hottest thermal zone detection") > Signed-off-by: Vadim Pasternak <[email protected]> > Reviewed-by: Jiri Pirko <[email protected]> > Signed-off-by: Ido Schimmel <[email protected]> Applied and queued up for -stable, thanks.
