Subject: hwmon: Improve the pwmN_enable documentation

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

 



Hi Riku,

On Wed, 27 Jun 2007 16:23:52 +0300, Riku Voipio wrote:
> Jean Delvare wrote:
> > 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.

Signed-off-by: Jean Delvare <khali at linux-fr.org>
---
 Documentation/hwmon/sysfs-interface |    9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

--- linux-2.6.22-rc6.orig/Documentation/hwmon/sysfs-interface	2007-06-27 21:08:40.000000000 +0200
+++ linux-2.6.22-rc6/Documentation/hwmon/sysfs-interface	2007-06-27 21:21:57.000000000 +0200
@@ -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,
-- 
Jean Delvare




[Index of Archives]     [Linux Kernel]     [Linux Hardware Monitoring]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux