mbox series

[v4,0/6] hwmon: pwm-fan: switch regulator dynamically

Message ID 20220523110513.407516-1-alexander.stein@ew.tq-group.com (mailing list archive)
Headers show
Series hwmon: pwm-fan: switch regulator dynamically | expand


Alexander Stein May 23, 2022, 11:05 a.m. UTC
Hello everyone,

this is a new version for supporting switching off the pwm-fan regulator.
pwm1_enable was reworked to supported the modes Guneter suggested, while
keeping the previous behavior. This also resulted in reordering and refactoring
the commits even more.

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 Stein (6):
  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
  hwmon: pwm-fan: Remove internal duplicated pwm_state

 Documentation/hwmon/pwm-fan.rst |  12 ++
 drivers/hwmon/pwm-fan.c         | 330 +++++++++++++++++++++++---------
 2 files changed, 255 insertions(+), 87 deletions(-)