From: alex@alexdalton.org (Alexandre d'Alton)
To: lm-sensors@vger.kernel.org
Subject: ADM1030 Driver
Date: Thu, 19 May 2005 06:24:53 +0000 [thread overview]
Message-ID: <1082409370.656.29.camel@megapc> (raw)
In-Reply-To: <20040319224106.79f6cec3.cedric.pradalier@inrialpes.fr>
> I proposed to handle it with a bitfield. A 1 means that the given
> temperature channel is taken into account for the given fan speed
> control. I agree that it's not immediate but with some extra thinking
> and work we can have the ADM1030/1031 fit it this model.
>
> For the adm1030:
>
> - ext temp for regulation
> file 1 value is 00000010b
>
> - max of the 2 channels
> file 1 value is 00000011b
>
> For the adm101:
> - ext temp1 for fan1, ext temp2 for fan2
> file 1 value is 00000010b
> file 2 value is 00000100b
>
> - ext temp1 for fan1 and fan2
> file 1 value is 00000010b
> file 2 value is 00000010b
>
> - ext temp2 for fan1 and fan2
> file 1 value is 00000100b
> file 2 value is 00000100b
>
> - max of 3 channels for fan1 and fan2
> file 1 value is 00000111b
> file 2 value is 00000111b
>
> So "decoding" it is easy. Now for encoding it's somewhat more tricky,
> admittedly, because you write to a single file at a time while the
> values are linked. That's not the first time we have to do that. There's
> a first example in lm90.c.
>
> If the value written is just not possible (say 00000110b to file 1) just
> return an error (-EINVAL).
>
> If it is possible and is compatible with the current value of the other
> file, do the change.
>
> If it is possible but not compatible with the current value of the other
> file, change the other file, preferably to the "nearest" value.
>
> The main advantage of this method compared with yours is that we can
> hope to implement it in a similar and compatible way for the other
> chipsets as well, thus preserving our ultimate goal: chip-independancy.
>
> Does it sound feasable?
I'm going to try such an implementation.
>
> BTW remember that you can always propose a not full-features driver yet,
> and add the extra features as further patches.
>
> Also, how do you plan to add support to the user space (sensors and
> libsensors?) Looks like you need a 2.4 driver as well to do it the same
> way the other drivers do. So either you will have to backport it, or we
> will have to find a trick.
When the 2.6 driver will be finnished, I'll backport it to the 2.4
kernel if you want me to.
But as I have only a adm1030 chip on my motherboard, the 1031 features
will not be tested...
> Thanks.
prev parent reply other threads:[~2005-05-19 6:24 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-19 6:24 Adm1030 driver Cedric Pradalier
2005-05-19 6:24 ` Jean Delvare
2005-05-19 6:24 ` Cedric Pradalier
2005-05-19 6:24 ` Mark Studebaker
2005-05-19 6:24 ` Jean Delvare
2005-05-19 6:24 ` Mark Studebaker
2005-05-19 6:24 ` Mark Studebaker
2005-05-19 6:24 ` Cedric Pradalier
2005-05-19 6:24 ` ADM1030 Driver Alexandre d'Alton
2005-05-19 6:24 ` Jean Delvare
2005-05-19 6:24 ` Alexandre d'Alton
2005-05-19 6:24 ` Alexandre d'Alton
2005-05-19 6:24 ` Alexandre d'Alton
2005-05-19 6:24 ` Alexandre d'Alton
2005-05-19 6:24 ` Alexandre d'Alton
2005-05-19 6:24 ` Jean Delvare
2005-05-19 6:24 ` Jean Delvare
2005-05-19 6:24 ` Jean Delvare
2005-05-19 6:24 ` Alexandre d'Alton
2005-05-19 6:24 ` Alexandre d'Alton
2005-05-19 6:24 ` Jean Delvare
2005-05-19 6:24 ` Alexandre d'Alton [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1082409370.656.29.camel@megapc \
--to=alex@alexdalton.org \
--cc=lm-sensors@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.