Re: [PATCH v3 2/2] Revert "mlxsw: core: Add the hottest thermal zone detection"

From: Ido Schimmel
Date: Wed Aug 17 2022 - 10:38:19 EST


On Wed, Aug 17, 2022 at 03:02:27PM +0200, Daniel Lezcano wrote:
> @@ -285,10 +254,8 @@ static int mlxsw_thermal_get_temp(struct thermal_zone_device *tzdev,
> dev_err(dev, "Failed to query temp sensor\n");
> return err;
> }
> +

Unnecessary blank line

> mlxsw_reg_mtmp_unpack(mtmp_pl, &temp, NULL, NULL, NULL, NULL);
> - if (temp > 0)
> - mlxsw_thermal_tz_score_update(thermal, tzdev, thermal->trips,
> - temp);
>
> *p_temp = temp;
> return 0;
> @@ -349,22 +316,6 @@ static int mlxsw_thermal_set_trip_hyst(struct thermal_zone_device *tzdev,
> return 0;
> }

[...]

> @@ -680,6 +623,7 @@ mlxsw_thermal_module_tz_init(struct mlxsw_thermal_module *module_tz)
> MLXSW_THERMAL_TRIP_MASK,
> module_tz,
> &mlxsw_thermal_module_ops,
> +

Likewise

> &mlxsw_thermal_params,
> 0,
> module_tz->parent->polling_delay);
> --
> 2.34.1
>