[PATCH v3 0/6] hwmon: pwm-fan: switch regulator dynamically

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




[Index of Archives]     [LM Sensors]     [Linux Sound]     [ALSA Users]     [ALSA Devel]     [Linux Audio Users]     [Linux Media]     [Kernel]     [Gimp]     [Yosemite News]     [Linux Media]

  Powered by Linux