* Setting w83627hf fan divisor 128 fails.
@ 2005-05-19 6:25 Jarkko Lavinen
2005-05-19 6:25 ` Jean Delvare
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Jarkko Lavinen @ 2005-05-19 6:25 UTC (permalink / raw)
To: lm-sensors
Hi all
I couldn't set the divisor 128 through fan1_div sysfs entry even though the
chip supports it and setting divisors 1..64 worked. This was due to
POWER_TO_REG() only checking 2's powers 0 till 5 but not 6.
Regards
Jarkko Lavinen
--- linux-2.6.12-rc3/drivers/i2c/chips/w83627hf.c 2005-04-21 03:03:13.000000000 +0300
+++ linux-2.6.12-rc3-koe/drivers/i2c/chips/w83627hf.c 2005-05-08 20:04:04.000000000 +0300
@@ -264,7 +264,7 @@ static inline u8 DIV_TO_REG(long val)
{
int i;
val = SENSORS_LIMIT(val, 1, 128) >> 1;
- for (i = 0; i < 6; i++) {
+ for (i = 0; i < 7; i++) {
if (val = 0)
break;
val >>= 1;
^ permalink raw reply [flat|nested] 4+ messages in thread
* Setting w83627hf fan divisor 128 fails.
2005-05-19 6:25 Setting w83627hf fan divisor 128 fails Jarkko Lavinen
2005-05-19 6:25 ` Jean Delvare
2005-05-19 6:25 ` Grant Coady
@ 2005-05-19 6:25 ` Mark Studebaker
2 siblings, 0 replies; 4+ messages in thread
From: Mark Studebaker @ 2005-05-19 6:25 UTC (permalink / raw)
To: lm-sensors
check in
thanks
Jarkko Lavinen wrote:
> Hi all
>
> I couldn't set the divisor 128 through fan1_div sysfs entry even though the
> chip supports it and setting divisors 1..64 worked. This was due to
> POWER_TO_REG() only checking 2's powers 0 till 5 but not 6.
>
> Regards
> Jarkko Lavinen
>
> --- linux-2.6.12-rc3/drivers/i2c/chips/w83627hf.c 2005-04-21 03:03:13.000000000 +0300
> +++ linux-2.6.12-rc3-koe/drivers/i2c/chips/w83627hf.c 2005-05-08 20:04:04.000000000 +0300
> @@ -264,7 +264,7 @@ static inline u8 DIV_TO_REG(long val)
> {
> int i;
> val = SENSORS_LIMIT(val, 1, 128) >> 1;
> - for (i = 0; i < 6; i++) {
> + for (i = 0; i < 7; i++) {
> if (val = 0)
> break;
> val >>= 1;
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Setting w83627hf fan divisor 128 fails.
2005-05-19 6:25 Setting w83627hf fan divisor 128 fails Jarkko Lavinen
@ 2005-05-19 6:25 ` Jean Delvare
2005-05-19 6:25 ` Grant Coady
2005-05-19 6:25 ` Mark Studebaker
2 siblings, 0 replies; 4+ messages in thread
From: Jean Delvare @ 2005-05-19 6:25 UTC (permalink / raw)
To: lm-sensors
> check in
> thanks
Hm, looks to me that the same is needed for w83781d, right?
Same for both the w83627hf and w83781d drivers in Linux 2.6 as far as I
can see.
Could anyone please check and provide patches for these as well?
Thanks,
--
Jean Delvare
^ permalink raw reply [flat|nested] 4+ messages in thread
* Setting w83627hf fan divisor 128 fails.
2005-05-19 6:25 Setting w83627hf fan divisor 128 fails Jarkko Lavinen
2005-05-19 6:25 ` Jean Delvare
@ 2005-05-19 6:25 ` Grant Coady
2005-05-19 6:25 ` Mark Studebaker
2 siblings, 0 replies; 4+ messages in thread
From: Grant Coady @ 2005-05-19 6:25 UTC (permalink / raw)
To: lm-sensors
On Wed, 11 May 2005 20:15:51 +0200, Jean Delvare <khali@linux-fr.org> wrote:
>Same for both the w83627hf and w83781d drivers in Linux 2.6 as far as I
>can see.
>
>Could anyone please check and provide patches for these as well?
And I'm planning to put auto fan_div in one day soon :)
Removing all that old set_fan_div...
--Grant.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2005-05-19 6:25 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-19 6:25 Setting w83627hf fan divisor 128 fails Jarkko Lavinen
2005-05-19 6:25 ` Jean Delvare
2005-05-19 6:25 ` Grant Coady
2005-05-19 6:25 ` Mark Studebaker
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.