Re: [PATCH v4 11/11] thermal: Rename set_mode() to change_mode()

2020-06-01 Thread Peter Kästle
28. Mai 2020 21:22, "Andrzej Pietrasiewicz" schrieb: > set_mode() is only called when tzd's mode is about to change. Actual > setting is performed in thermal_core, in thermal_zone_device_set_mode(). > The meaning of set_mode() callback is actually to notify the driver about > the mode being chang

Re: [PATCH v4 10/11] thermal: Simplify or eliminate unnecessary set_mode() methods

2020-06-01 Thread Peter Kästle
28. Mai 2020 21:22, "Andrzej Pietrasiewicz" schrieb: > Setting polling_delay is now done at thermal_core level (by not polling > DISABLED devices), so no need to repeat this code. > > int340x: Checking for an impossible enum value is unnecessary. > acpi/thermal: It only prints debug messages. >

Re: [PATCH v4 07/11] thermal: Use mode helpers in drivers

2020-06-01 Thread Peter Kästle
28. Mai 2020 21:22, "Andrzej Pietrasiewicz" schrieb: > Use thermal_zone_device_{en|dis}able() and thermal_zone_device_is_enabled(). > > Consequently, all set_mode() implementations in drivers: > > - can stop modifying tzd's "mode" member, > - shall stop taking tzd's lock, as it is taken in the

Re: [PATCH v4 05/11] thermal: remove get_mode() operation of drivers

2020-06-01 Thread Peter Kästle
28. Mai 2020 21:21, "Andrzej Pietrasiewicz" schrieb: > get_mode() is now redundant, as the state is stored in struct > thermal_zone_device. > > Consequently the "mode" attribute in sysfs can always be visible, because > it is always possible to get the mode from struct tzd. > > Signed-off-by: A

Re: [PATCH v4 04/11] thermal: Store device mode in struct thermal_zone_device

2020-06-01 Thread Peter Kästle
28. Mai 2020 21:21, "Andrzej Pietrasiewicz" schrieb: > Prepare for eliminating get_mode(). > > Signed-off-by: Andrzej Pietrasiewicz > --- [...] > drivers/platform/x86/acerhdf.c | 15 ++--- Acked-by: Peter Kaestle

Re: [PATCH v4 02/11] thermal: Store thermal mode in a dedicated enum

2020-06-01 Thread Peter Kästle
28. Mai 2020 21:21, "Andrzej Pietrasiewicz" schrieb: > Prepare for storing mode in struct thermal_zone_device. > > Signed-off-by: Andrzej Pietrasiewicz > --- [...] > drivers/platform/x86/acerhdf.c | 8 -- Acked-by: Peter Kaestle

Re: [PATCH v4 00/11] Stop monitoring disabled devices

2020-06-01 Thread Peter Kästle
Hi, 28. Mai 2020 21:21, "Andrzej Pietrasiewicz" schrieb: [...] > This v4 series addresses those concerns: it takes a more gradual > approach and uses explicit tzd state initialization, hence there are more > insertions than in v3, and the net effect is -63 lines versus -139 lines > in v3. I'd