All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/6] hwmon: pwm-fan: switch regulator dynamically
@ 2022-05-17 14:26 Alexander Stein
  2022-05-17 14:26 ` [PATCH v3 1/6] hwmon: pwm-fan: Refactor fan power on/off Alexander Stein
                   ` (5 more replies)
  0 siblings, 6 replies; 16+ messages in thread
From: Alexander Stein @ 2022-05-17 14:26 UTC (permalink / raw)
  To: Bartlomiej Zolnierkiewicz, 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 a new version for supporting switching off the pwm-fan regulator.
This time it is split into several smaller patches for ease of review.
Some organizational changes are inspired/copied by/from pwm_bl.

One big drawback form v2 was that there was no distinction bewteen when
PWM duty == 0:
* keep PWM on inactive level enabled (regulator as well)
* disable PWM and regulator

This is accomplished by using HWMON_PWM_ENABLE attribute. Documentation is
added accordingly.

Best regards,
Alexander

Alexander Stein (6):
  hwmon: pwm-fan: Refactor fan power on/off
  hwmon: pwm-fan: Simplify enable/disable check
  hwmon: pwm-fan: Dynamically switch off regulator if PWM duty is 0
  hwmon: pwm-fan: Remove internal duplicated pwm_state
  hwmon: pwm-fan: Move PWM enable into separate function
  hwmon: pwm-fan: Add hwmon_pwm_enable attribute

 Documentation/hwmon/pwm-fan.rst |  10 ++
 drivers/hwmon/pwm-fan.c         | 263 ++++++++++++++++++++++----------
 2 files changed, 191 insertions(+), 82 deletions(-)

-- 
2.25.1


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

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

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-17 14:26 [PATCH v3 0/6] hwmon: pwm-fan: switch regulator dynamically Alexander Stein
2022-05-17 14:26 ` [PATCH v3 1/6] hwmon: pwm-fan: Refactor fan power on/off Alexander Stein
2022-05-17 14:26 ` [PATCH v3 2/6] hwmon: pwm-fan: Simplify enable/disable check Alexander Stein
2022-05-17 14:26 ` [PATCH v3 3/6] hwmon: pwm-fan: Dynamically switch off regulator if PWM duty is 0 Alexander Stein
2022-05-17 14:26 ` [PATCH v3 4/6] hwmon: pwm-fan: Remove internal duplicated pwm_state Alexander Stein
2022-05-17 14:26 ` [PATCH v3 5/6] hwmon: pwm-fan: Move PWM enable into separate function Alexander Stein
2022-05-17 14:26 ` [PATCH v3 6/6] hwmon: pwm-fan: Add hwmon_pwm_enable attribute Alexander Stein
2022-05-17 14:53   ` Uwe Kleine-König
2022-05-17 16:32     ` Guenter Roeck
2022-05-17 16:57       ` Uwe Kleine-König
2022-05-17 17:32         ` Guenter Roeck
2022-05-18  6:55           ` Alexander Stein
2022-05-17 16:38   ` Guenter Roeck
2022-05-17 17:06     ` Uwe Kleine-König
2022-05-18  7:06       ` (EXT) " Alexander Stein
2022-05-18 14:20         ` Guenter Roeck

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.