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: <1082406507.656.20.camel@megapc> (raw)
In-Reply-To: <20040319224106.79f6cec3.cedric.pradalier@inrialpes.fr>
On Mon, 2004-04-19 at 22:04, Jean Delvare wrote:
> > > > Bit 0 of conf register 2 enables the pwm output, I think that if
> > > > the bit iscleared, the fan will never rotate. Even if in automatic
> > > > mode. But it is not verified yet...
> > >
> > > Please try and tell me.
> >
> > Clearing that bit disables PWM output, so the fan doesn't run at all!
>
> Then you don't want to allow the user to do it. At all.
Off course !
Concerning the auto fan mode, I think that the interface:
auto_temp_off
auto_temp_min
auto_temp_max
is clear, so I'm going to implement that.
Concerning the channel configuration, as
adm1030 can select:
- ext temp for regulation
- max of the 2 channels
adm1031 can select:
- ext temp1 for fan1, ext temp2 for fan2
- ext temp1 for fan1 and fan2
- ext temp2 for fan1 and fan2
- max of 3 channels for fan1 and fan2
it is pretty hard to create a standard interface, so what I suggest, is
to create a file fan_auto_temp_select that would verbosely print the
values it can hold. Example for adm1030:
# cat fan_auto_temp_select
* 0 => manual mode
1 => temp2 controls fan1 temp3 controls fan2
2 => temp2 controls fan1 and fan2
3 => temp3 controls fan1 and fan2
4 => max controls fan1 and fan2
The star shows the current config.
Do you like this approach ? Is it possible to write as many bytes in the
buffer given to the show() interface ? Or do you have another idea ?
Alex.
next 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 ` Cedric Pradalier
2005-05-19 6:24 ` Jean Delvare
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 ` Mark Studebaker
2005-05-19 6:24 ` ADM1030 Driver 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 ` Alexandre d'Alton
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 ` Alexandre d'Alton
2005-05-19 6:24 ` Alexandre d'Alton [this message]
2005-05-19 6:24 ` Jean Delvare
2005-05-19 6:24 ` Jean Delvare
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=1082406507.656.20.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.