From: khali@linux-fr.org (Jean Delvare)
To: lm-sensors@vger.kernel.org
Subject: [lm-sensors] [PATCH] W83627EHF driver update
Date: Tue, 13 Jun 2006 08:53:13 +0000 [thread overview]
Message-ID: <20060613105313.4a58676d.khali@linux-fr.org> (raw)
In-Reply-To: <4485CB7A.9050209@sh.cvut.cz>
Hi David,
> > The name is not very well chosen, these registers can hold both a target
> > temperature or a target fan speed depending on the control mode (even
> > if we don't support the latter at the moment.) What about just
> > W83627EHF_REG_TARGET?
>
> This is a good suggestion. In the near future, the registers will hold
> one or the other value, and the driver will support both modes. Rudolf
> and I talked about storing both values in the driver, with separate
> sysfs files so libsensors could read either value, the one on the chip
> or the one that will replace the value on the chip if the mode
> switched. Advantages to doing it this way: we can set a reasonable
> default for the value that's not on the chip, so when the mdoe
> switches, the value in the register is not left unchanged (and
> probably not reasonable); also, from userspace, it looks like there
> are two registers, even though in hardware there's only one.
>
> Disadvantages: well, emulation is bad, isn't it? But here I would
> argue for emulating separate registers in the driver because the
> register sharing in the hardware is impossible to map directly to a
> sysfs file. If we're going to have two sysfs files with different
> meanings, then can we just emulate separate registers?
I'm fine with having two sets of internal variables, the reasons you
give in that sense are good ones. I don't think doing so qualifies as
"emulation". The hardware designers took an unfortunate shortcut by
using the same registers for different functions, we need to deal with
this.
Thanks,
--
Jean Delvare
next prev parent reply other threads:[~2006-06-13 8:53 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-06-06 18:37 [lm-sensors] [PATCH] W83627EHF driver update Rudolf Marek
2006-06-06 21:02 ` David Hubbard
2006-06-07 10:29 ` Jim Cromie
2006-06-07 20:51 ` David Hubbard
2006-06-07 21:00 ` Rudolf Marek
2006-06-07 21:06 ` Rudolf Marek
2006-06-07 22:13 ` Sylvain Jeaugey
2006-06-08 1:01 ` David Hubbard
2006-06-08 7:51 ` Sylvain Jeaugey
2006-06-12 16:30 ` Jean Delvare
2006-06-12 23:12 ` David Hubbard
2006-06-13 8:53 ` Jean Delvare [this message]
2006-06-13 16:03 ` David Hubbard
2006-06-14 12:48 ` Rudolf Marek
2006-06-14 15:06 ` Jean Delvare
2006-06-14 15:14 ` Rudolf Marek
2006-06-14 15:50 ` Jean Delvare
2006-06-14 21:29 ` Rudolf Marek
2006-06-15 14:55 ` David Hubbard
2006-06-15 15:20 ` Sylvain Jeaugey
2006-06-16 4:29 ` David Hubbard
2006-06-16 21:33 ` Rudolf Marek
2006-06-19 15:53 ` David Hubbard
2006-06-20 12:41 ` Jean Delvare
2006-06-21 15:10 ` David Hubbard
2006-06-24 16:42 ` Rudolf Marek
2006-06-25 14:04 ` Jean Delvare
2006-06-25 16:00 ` Rudolf Marek
2006-06-26 19:33 ` Jean Delvare
2006-06-26 20:34 ` Rudolf Marek
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=20060613105313.4a58676d.khali@linux-fr.org \
--to=khali@linux-fr.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.