Linux Hardware Monitor development
 help / color / mirror / Atom feed
* [PATCH v5 0/5] hwmon: pwm-fan: switch regulator dynamically
@ 2022-09-14 15:31 Alexander Stein
  2022-09-14 15:31 ` [PATCH v5 1/5] hwmon: pwm-fan: Refactor fan power on/off Alexander Stein
                   ` (4 more replies)
  0 siblings, 5 replies; 11+ messages in thread
From: Alexander Stein @ 2022-09-14 15:31 UTC (permalink / raw)
  To: Jean Delvare, Guenter Roeck, Jonathan Corbet, Thierry Reding,
	Uwe Kleine-König, Lee Jones
  Cc: Alexander Stein, linux-hwmon, linux-pwm, Markus Niebel

Hello everyone,

this is the next version for supporting switching off the pwm-fan regulator.
Review points from Guenter are included.

Changes in v5:
* Added Guenter's R-b to Patch 1 & 4
* Removed useless goto (Patch 2)
* Added error checking when switching off PWM (Patch 2)
* Removed useless branches when switching power (Patch 3)
* Removed useless (temporary) variable (Patch 3)
* Updated Patch 5 to changes of previous patches
* Dropped Patch 6 completly for lack of benefit

Changes in v4:
* Reordered commits so current behavior is the default all the time
* Fixed pwm state bug in Patch 1, this affects the patch context in Patch 2
* Refactor even more code in Patch 3 & 4 for smaller further patches
* Squashed the dynamic regulator switch patch and the sysfs attribute patch
  into one, keeping default behavior.
  Overhaul the patch to support different modes altogether
* Fixed bugs in module removal in pwm1_enable=1
* Moved internal PWM state removal to the end to keep the patch smaller

Best regards,
Alexander

Alexander Stein (5):
  hwmon: pwm-fan: Refactor fan power on/off
  hwmon: pwm-fan: Simplify enable/disable check
  hwmon: pwm-fan: Add dedicated power switch function
  hwmon: pwm-fan: split __set_pwm into locked/unlocked functions
  hwmon: pwm-fan: Switch regulator dynamically

 Documentation/hwmon/pwm-fan.rst |  12 ++
 drivers/hwmon/pwm-fan.c         | 312 +++++++++++++++++++++++---------
 2 files changed, 241 insertions(+), 83 deletions(-)

-- 
2.25.1


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2022-09-20 14:22 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-09-14 15:31 [PATCH v5 0/5] hwmon: pwm-fan: switch regulator dynamically Alexander Stein
2022-09-14 15:31 ` [PATCH v5 1/5] hwmon: pwm-fan: Refactor fan power on/off Alexander Stein
2022-09-20 14:15   ` Guenter Roeck
2022-09-14 15:31 ` [PATCH v5 2/5] hwmon: pwm-fan: Simplify enable/disable check Alexander Stein
2022-09-20 14:17   ` Guenter Roeck
2022-09-14 15:31 ` [PATCH v5 3/5] hwmon: pwm-fan: Add dedicated power switch function Alexander Stein
2022-09-20 14:18   ` Guenter Roeck
2022-09-14 15:31 ` [PATCH v5 4/5] hwmon: pwm-fan: split __set_pwm into locked/unlocked functions Alexander Stein
2022-09-20 14:19   ` Guenter Roeck
2022-09-14 15:31 ` [PATCH v5 5/5] hwmon: pwm-fan: Switch regulator dynamically Alexander Stein
2022-09-20 14:20   ` Guenter Roeck

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox