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

2020-06-26 Thread Andrzej Pietrasiewicz
Hi Bartlomiej, W dniu 24.06.2020 o 11:51, Bartlomiej Zolnierkiewicz pisze: On 5/28/20 9:20 PM, Andrzej Pietrasiewicz wrote: 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"

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

2020-06-24 Thread Bartlomiej Zolnierkiewicz
On 5/28/20 9:20 PM, Andrzej Pietrasiewicz wrote: > 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 help

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

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

2020-05-28 Thread Andrzej Pietrasiewicz
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 helpers - shall stop calling thermal_zone_device_update() as it is