* [lm-sensors] [PATCH] hwmon: Cleanup w83627hf initialization
@ 2005-10-04 20:09 Jean Delvare
2005-10-05 6:14 ` Salah Coronya
2005-10-05 10:42 ` Jean Delvare
0 siblings, 2 replies; 3+ messages in thread
From: Jean Delvare @ 2005-10-04 20:09 UTC (permalink / raw)
To: lm-sensors
Hi all,
I am enqueuing the following patch. I would appreciate if owners of a
W83627HF chip could give it a try and confirm that PWM2 still works OK.
Also, if someone can tell why the code I plan to remove was there in
the first place, while the W83627HF datasheet suggest it's neither
needed nor correct, please speak up. Thanks.
Drop a useless initialization step in the w83627hf driver. The comment
says that the W83627HF PWM2 can be disabled, but it can't. I suppose
this is a leftover from the w83781d driver (from which the w83627hf
driver is derived), as for example the W83782D had the ability to
disable PWM2.
Signed-off-by: Jean Delvare <khali@linux-fr.org>
drivers/hwmon/w83627hf.c | 7 -------
1 files changed, 7 deletions(-)
--- linux-2.6.14-rc3.orig/drivers/hwmon/w83627hf.c 2005-10-04 14:56:33.000000000 +0200
+++ linux-2.6.14-rc3/drivers/hwmon/w83627hf.c 2005-10-04 15:04:02.000000000 +0200
@@ -201,7 +201,6 @@
#define W83627HF_REG_PWM1 0x5A
#define W83627HF_REG_PWM2 0x5B
-#define W83627HF_REG_PWMCLK12 0x5C
#define W83627THF_REG_PWM1 0x01 /* 697HF and 637HF too */
#define W83627THF_REG_PWM2 0x03 /* 697HF and 637HF too */
@@ -1373,12 +1372,6 @@
}
}
- if (type = w83627hf) {
- /* enable PWM2 control (can't hurt since PWM reg
- should have been reset to 0xff) */
- w83627hf_write_value(client, W83627HF_REG_PWMCLK12,
- 0x19);
- }
/* enable comparator mode for temp2 and temp3 so
alarm indication will work correctly */
i = w83627hf_read_value(client, W83781D_REG_IRQ);
--
Jean Delvare
^ permalink raw reply [flat|nested] 3+ messages in thread
* [lm-sensors] [PATCH] hwmon: Cleanup w83627hf initialization
2005-10-04 20:09 [lm-sensors] [PATCH] hwmon: Cleanup w83627hf initialization Jean Delvare
@ 2005-10-05 6:14 ` Salah Coronya
2005-10-05 10:42 ` Jean Delvare
1 sibling, 0 replies; 3+ messages in thread
From: Salah Coronya @ 2005-10-05 6:14 UTC (permalink / raw)
To: lm-sensors
Jean Delvare wrote:
> Hi all,
>
> I am enqueuing the following patch. I would appreciate if owners of a
> W83627HF chip could give it a try and confirm that PWM2 still works OK.
It works for me just fine, actually it works BETTER. before pwm1 and
pwm2 were reversed (pwm1 controlled fan2; and pwm2 controller fan1), and
the fan2 would always report 0 no matter what the fan speed was. Now the
reading and controls are correct, or at least more plausible. (Unless it
was another patch between 2.6.13 and 2.6.13-r3).
^ permalink raw reply [flat|nested] 3+ messages in thread
* [lm-sensors] [PATCH] hwmon: Cleanup w83627hf initialization
2005-10-04 20:09 [lm-sensors] [PATCH] hwmon: Cleanup w83627hf initialization Jean Delvare
2005-10-05 6:14 ` Salah Coronya
@ 2005-10-05 10:42 ` Jean Delvare
1 sibling, 0 replies; 3+ messages in thread
From: Jean Delvare @ 2005-10-05 10:42 UTC (permalink / raw)
To: lm-sensors
Hi Salah,
On 2005-10-05, Salah Coronya wrote:
> It works for me just fine, actually it works BETTER. before pwm1 and
> pwm2 were reversed (pwm1 controlled fan2; and pwm2 controller fan1), and
> the fan2 would always report 0 no matter what the fan speed was. Now the
> reading and controls are correct, or at least more plausible. (Unless it
> was another patch between 2.6.13 and 2.6.13-r3).
I assume you mean 2.6.14-rc3? Yes there was a patch which made the chip
reset on driver load optional (and off by default). This is much more
likely to cause the improvements you observe than my new patch. You
could try loading the w83627hf driver with reset=1 and see if everything
reverts to the old behavior. I admit I'm a bit surprised that PWM
outputs were swapped, as I don't think the W83627HF hardware monitoring
logical device can actually do that.
Also note that the second patch really only affects the W83627HF chip,
not W83637HF, W83627THF nor W83697HF. Not sure which one you have.
Anyway, if everything works OK for you with these two patches applied,
that's great :) Thanks for testing.
--
Jean Delvare
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-10-05 10:42 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-04 20:09 [lm-sensors] [PATCH] hwmon: Cleanup w83627hf initialization Jean Delvare
2005-10-05 6:14 ` Salah Coronya
2005-10-05 10:42 ` Jean Delvare
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.