Skip to contentSkip to conversation

Subject: hwmon: Improve the pwmN_enable documentation

lm-sensors Jean Delvare 1 participant 1 message Jun 27, 2007

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hi Riku,

Quoted 6 lines · Riku Voipio
Quoted 2 lines · Jean Delvare

Sounds like a bug in the driver then. Setting pwm1_enable to 0 should turn the fan to full speed.

The sysfs interface states that pwm_enable to 0 turns off pwm control... How would that turn fans to full speed?

I agree that Documentation/hwmon/sysfs-interface is particularly confusing. I thought we had fixed it, but it seems not. What about the following patch?

* * * * *

The documentation of the pwmN_enable interface file is not very clear, and has been confusing several driver authors already. Make it clearer.

---
 Documentation/hwmon/sysfs-interface |    9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)
Documentation/hwmon/sysfs-interface +4 -5
@@ -172,11 +172,10 @@ pwm[1-*]	Pulse width modulation fan cont
 		255 is max or 100%.
 
 pwm[1-*]_enable
-		Switch PWM on and off.
-		Not always present even if pwmN is.
-		0: turn off
-		1: turn on in manual mode
-		2+: turn on in automatic mode
+		Fan speed control method:
+		0: no fan speed control (i.e. fan at full speed)
+		1: manual fan speed control enabled (using pwm[1-*])
+		2+: automatic fan speed control enabled
 		Check individual chip documentation files for automatic mode
 		details.
 		RW

Thanks,

Signature · 6 lines
Jean Delvare

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors