Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1635270
| From | Chris Packham <Chris.Packham@alliedtelesis.co.nz> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [RFC PATCH v2 2/3] hwmon: (adt7475) fan stall prevention |
| Date | 2017-05-03 22:50 +0200 |
| Message-ID | <tD9nH-1VW-9@gated-at.bofh.it> (permalink) |
| References | <tCQEp-5rw-3@gated-at.bofh.it> <tCQEp-5rw-1@gated-at.bofh.it> <tD5aq-7Ki-23@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On 04/05/17 04:10, Guenter Roeck wrote: > On Wed, May 03, 2017 at 12:40:08PM +1200, Chris Packham wrote: >> By default adt7475 will stop the fans (pwm duty cycle 0%) when the >> temperature drops past Tmin - hysteresis. Some systems want to keep the >> fans moving even when the temperature drops so add new sysfs attributes >> that configure the enhanced acoustics min 1-3 which allows the fans to >> run at the minimum configure pwm duty cycle. >> >> Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz> >> --- >> Changes in v2: >> - use pwmN_stall_dis as the attribute name. I think this describes the purpose >> pretty well. I went with a new attribute instead of overloading >> pwmN_auto_point1_pwm so this doesn't affect existing users. >> >> Documentation/hwmon/adt7475 | 5 +++++ >> drivers/hwmon/adt7475.c | 50 +++++++++++++++++++++++++++++++++++++++++++++ >> 2 files changed, 55 insertions(+) >> >> diff --git a/Documentation/hwmon/adt7475 b/Documentation/hwmon/adt7475 >> index 0502f2b464e1..63507402cd4f 100644 >> --- a/Documentation/hwmon/adt7475 >> +++ b/Documentation/hwmon/adt7475 >> @@ -109,6 +109,11 @@ fan speed) is applied. PWM values range from 0 (off) to 255 (full speed). >> Fan speed may be set to maximum when the temperature sensor associated with >> the PWM control exceeds temp#_max. >> >> +At Tmin - hysteresis the PWM output can either be off (0% duty cycle) or at the >> +minimum (i.e. auto_point1_pwm). This behaviour be configured using the >> +pwm[1-*]_stall_dis sysfs attribute. A value of 0 means the fans will shut off. > > That is really an awkward attribute name. I'll have to think about this some > more. I agree. The other thing I considered was "halt" and using inverted logic so halt == 1 reflected the HW default of allowing fans to stop.
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[RFC PATCH v2 2/3] hwmon: (adt7475) fan stall prevention Chris Packham <chris.packham@alliedtelesis.co.nz> - 2017-05-03 02:50 +0200
Re: [RFC PATCH v2 2/3] hwmon: (adt7475) fan stall prevention Guenter Roeck <linux@roeck-us.net> - 2017-05-03 18:20 +0200
Re: [RFC PATCH v2 2/3] hwmon: (adt7475) fan stall prevention Chris Packham <Chris.Packham@alliedtelesis.co.nz> - 2017-05-03 22:50 +0200
csiph-web