Vadim Pasternak
50dad5e75c
hwmon: (mlxreg-fan) Separate methods of fan setting coming from different subsystems
...
[ Upstream commit c02e4644f8ac9c501077ef5ac53ae7fc51472d49 ]
Distinct between fan speed setting request coming for hwmon and
thermal subsystems.
There are fields 'last_hwmon_state' and 'last_thermal_state' in the
structure 'mlxreg_fan_pwm', which respectively store the cooling state
set by the 'hwmon' and 'thermal' subsystem.
The purpose is to make arbitration of fan speed setting. For example, if
fan speed required to be not lower than some limit, such setting is to
be performed through 'hwmon' subsystem, thus 'thermal' subsystem will
not set fan below this limit.
Currently, the 'last_thermal_state' is also be updated by 'hwmon' causing
cooling state to never be set to a lower value.
Eliminate update of 'last_thermal_state', when request is coming from
'hwmon' subsystem.
Fixes: da74944d3a ("hwmon: (mlxreg-fan) Use pwm attribute for setting fan speed low limit")
Signed-off-by: Vadim Pasternak <vadimp@nvidia.com >
Link: https://lore.kernel.org/r/20250113084859.27064-2-vadimp@nvidia.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net >
Signed-off-by: Sasha Levin <sashal@kernel.org >
2025-10-15 12:03:37 +02:00
..
2025-06-16 06:30:57 -07:00
2025-02-24 18:10:10 -08:00
2025-08-07 10:07:06 +02:00
2024-11-10 14:48:07 -08:00
2024-11-10 14:48:07 -08:00
2025-03-21 08:01:05 -07:00
2025-03-02 08:42:01 -08:00
2024-05-01 07:47:49 -07:00
2024-06-08 16:07:32 -07:00
2024-07-07 07:48:25 -07:00
2023-06-08 06:41:17 -07:00
2024-05-01 07:47:49 -07:00
2024-05-01 07:47:49 -07:00
2024-06-08 16:07:32 -07:00
2024-05-01 07:47:49 -07:00
2023-06-08 06:41:17 -07:00
2024-06-08 16:07:32 -07:00
2024-07-31 10:43:51 -07:00
2022-09-25 14:22:12 -07:00
2024-10-02 17:23:23 -04:00
2024-05-01 07:47:49 -07:00
2024-05-01 07:47:49 -07:00
2024-05-01 07:47:49 -07:00
2024-07-31 10:43:51 -07:00
2025-07-20 16:38:34 -07:00
2025-04-23 07:18:27 -07:00
2025-07-20 16:38:34 -07:00
2024-11-24 07:36:47 -08:00
2023-08-21 06:04:29 -07:00
2024-05-01 07:47:49 -07:00
2023-06-08 06:41:17 -07:00
2024-11-10 14:48:07 -08:00
2024-08-27 08:11:15 -07:00
2025-01-12 08:46:23 -08:00
2024-10-02 17:23:23 -04:00
2023-09-29 14:48:31 -07:00
2025-10-15 12:03:25 +02:00
2024-05-01 07:47:49 -07:00
2025-06-30 17:57:15 -07:00
2023-08-21 06:04:29 -07:00
2025-03-17 11:15:53 -07:00
2024-12-14 08:00:44 -08:00
2024-04-28 10:08:43 -07:00
2025-07-15 10:36:35 -07:00
2025-07-20 16:38:34 -07:00
2024-11-12 19:03:58 -08:00
2024-11-10 14:48:07 -08:00
2025-04-23 07:18:27 -07:00
2024-11-10 14:48:07 -08:00
2025-01-15 06:22:13 -08:00
2024-05-01 07:47:49 -07:00
2024-06-08 16:07:32 -07:00
2024-05-01 07:47:49 -07:00
2024-05-12 09:02:00 -07:00
2024-05-01 07:47:49 -07:00
2025-07-20 16:38:34 -07:00
2024-11-10 14:48:07 -08:00
2024-11-10 14:48:07 -08:00
2024-06-08 16:07:32 -07:00
2025-04-10 11:58:38 +02:00
2024-09-27 08:18:43 -07:00
2025-06-16 06:30:57 -07:00
2024-05-01 07:47:49 -07:00
2024-07-09 15:45:48 -07:00
2024-10-02 17:23:23 -04:00
2024-05-01 07:47:49 -07:00
2024-05-01 07:47:49 -07:00
2025-04-23 07:18:27 -07:00
2025-07-20 16:37:09 -07:00
2023-08-21 06:04:29 -07:00
2024-05-01 07:47:49 -07:00
2025-02-24 13:19:12 +02:00
2024-05-01 07:47:49 -07:00
2025-03-18 08:03:40 -07:00
2025-05-02 10:23:47 +02:00
2025-03-04 03:13:18 -08:00
2024-11-10 14:48:07 -08:00
2024-11-10 14:48:06 -08:00
2025-07-20 16:38:34 -07:00
2024-05-04 17:37:03 +02:00
2023-09-29 14:48:31 -07:00
2024-07-19 15:55:08 -07:00
2025-04-23 07:18:27 -07:00
2024-05-01 07:47:49 -07:00
2025-09-01 08:03:05 -07:00
2025-02-02 17:34:06 -08:00
2024-12-02 11:34:44 -08:00
2025-05-19 21:56:18 -07:00
2024-04-30 10:32:14 -07:00
2024-11-12 13:54:55 -08:00
2023-04-19 07:08:36 -07:00
2025-06-03 09:11:26 -07:00
2025-04-23 07:18:27 -07:00
2025-07-24 09:20:39 +02:00
2025-05-12 18:05:54 -07:00
2023-08-21 06:04:29 -07:00
2024-04-30 10:31:26 -07:00
2024-05-01 07:47:49 -07:00
2024-06-08 16:07:32 -07:00
2024-06-08 16:07:32 -07:00
2024-05-01 07:47:49 -07:00
2025-05-14 05:34:21 -07:00
2022-07-13 08:38:19 -07:00
2024-05-01 07:47:49 -07:00
2024-06-08 16:07:33 -07:00
2023-06-08 06:41:17 -07:00
2024-06-08 16:07:33 -07:00
2024-06-08 16:07:33 -07:00
2024-05-09 12:56:06 -07:00
2025-04-23 07:18:27 -07:00
2024-08-27 08:10:23 -07:00
2024-05-01 07:47:49 -07:00
2024-07-31 10:43:52 -07:00
2024-05-09 12:56:06 -07:00
2024-07-31 10:43:51 -07:00
2023-08-21 06:04:29 -07:00
2024-05-01 07:47:49 -07:00
2024-07-31 10:43:52 -07:00
2024-05-01 07:47:49 -07:00
2022-09-25 14:22:12 -07:00
2024-05-01 07:47:49 -07:00
2025-01-15 13:52:43 -08:00
2025-08-07 10:07:06 +02:00
2024-05-01 07:47:49 -07:00
2024-05-01 07:47:49 -07:00
2024-05-01 07:47:49 -07:00
2024-05-01 07:47:49 -07:00
2024-05-01 07:47:49 -07:00
2024-05-01 07:47:49 -07:00
2025-07-20 16:38:34 -07:00
2023-08-21 06:04:29 -07:00
2025-07-24 09:20:39 +02:00
2024-05-01 07:47:49 -07:00
2024-11-10 14:48:07 -08:00
2023-05-26 13:33:05 +02:00
2024-07-31 10:43:53 -07:00
2024-07-31 10:43:53 -07:00
2024-05-01 07:47:49 -07:00
2024-05-09 12:56:06 -07:00
2025-04-23 07:18:27 -07:00
2023-12-11 06:20:28 -08:00
2024-07-31 10:43:53 -07:00
2024-07-31 10:43:52 -07:00
2022-09-25 14:22:12 -07:00
2024-05-01 07:47:49 -07:00
2024-02-25 12:37:36 -08:00
2024-05-01 07:47:49 -07:00
2025-07-20 16:38:34 -07:00
2025-04-23 07:21:15 -07:00
2025-07-24 09:20:39 +02:00
2024-05-01 07:47:49 -07:00
2024-11-10 14:48:07 -08:00
2024-06-08 16:07:33 -07:00
2025-10-15 12:03:37 +02:00
2024-06-08 16:07:33 -07:00
2025-03-02 08:14:41 -08:00
2025-03-17 04:44:20 -07:00
2024-12-02 11:34:44 -08:00
2024-12-02 11:34:44 -08:00
2024-06-11 07:25:13 -07:00
2025-05-01 20:10:36 -07:00
2024-08-27 08:11:15 -07:00
2024-05-01 07:47:49 -07:00
2025-06-08 09:07:37 +02:00
2023-08-21 06:04:31 -07:00
2025-03-25 19:55:29 -07:00
2024-11-10 14:48:06 -08:00
2024-10-02 17:23:23 -04:00
2024-10-02 17:23:23 -04:00
2024-11-10 14:48:07 -08:00
2024-11-10 14:48:07 -08:00
2024-05-01 07:47:49 -07:00
2024-11-10 14:48:06 -08:00
2024-06-08 16:07:33 -07:00
2025-03-05 21:17:56 -08:00
2025-06-08 09:07:37 +02:00
2025-04-23 07:18:26 -07:00
2024-12-14 08:00:44 -08:00
2024-05-01 07:47:49 -07:00
2023-10-27 07:27:24 -07:00
2024-08-27 08:10:23 -07:00
2024-02-25 12:37:36 -08:00
2024-11-10 14:48:07 -08:00
2023-03-03 20:45:02 +01:00
2023-08-21 06:04:29 -07:00
2023-04-19 07:08:40 -07:00
2025-02-06 18:51:18 -08:00
2025-02-02 17:34:06 -08:00
2024-11-10 14:48:07 -08:00
2024-11-10 14:48:07 -08:00
2024-09-12 14:17:29 -07:00
2024-07-15 17:39:13 -07:00
2024-11-10 14:48:07 -08:00
2024-11-10 14:48:06 -08:00
2023-04-19 07:08:38 -07:00
2024-11-10 14:48:07 -08:00
2024-05-01 07:47:49 -07:00
2023-04-19 07:08:38 -07:00
2025-04-23 07:18:27 -07:00
2024-08-27 08:10:23 -07:00
2024-11-10 14:48:06 -08:00
2024-08-27 08:10:23 -07:00
2023-04-19 07:08:38 -07:00
2024-05-01 07:47:49 -07:00
2024-05-01 07:47:49 -07:00
2024-06-08 16:07:33 -07:00
2025-04-23 07:18:33 -07:00
2024-05-01 07:47:49 -07:00
2024-12-14 08:00:44 -08:00
2024-07-31 10:43:51 -07:00
2024-08-27 08:11:15 -07:00
2024-08-27 08:11:15 -07:00
2025-01-14 15:42:16 -08:00
2025-02-02 17:34:06 -08:00
2024-11-10 14:48:07 -08:00
2024-08-27 08:10:11 -07:00
2024-11-10 14:48:07 -08:00
2024-11-10 14:48:07 -08:00
2024-11-10 14:48:07 -08:00
2024-11-10 14:48:07 -08:00
2024-05-01 07:47:49 -07:00
2024-05-01 07:47:49 -07:00
2025-07-20 16:38:34 -07:00
2024-11-10 14:48:07 -08:00
2024-02-11 13:43:08 -08:00
2024-11-10 14:48:07 -08:00
2024-05-01 07:47:49 -07:00
2024-05-01 07:47:49 -07:00
2024-09-27 08:18:43 -07:00
2024-06-08 16:07:33 -07:00
2025-04-23 07:18:27 -07:00