From: Jean Delvare <khali@linux-fr.org>
To: guenter.roeck@ericsson.com
Cc: Jonathan Cameron <jic23@cam.ac.uk>,
Hans de Goede <hdegoede@redhat.com>,
Andrew Morton <akpm@linux-foundation.org>,
Mark Brown <broonie@opensource.wolfsonmicro.com>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"lm-sensors@lm-sensors.org" <lm-sensors@lm-sensors.org>
Subject: Re: [lm-sensors] [PATCH 1/3] hwmon: Driver for SMM665 Six-Channel Active DC Output Controller/Monitor
Date: Sat, 19 Jun 2010 10:27:29 +0200 [thread overview]
Message-ID: <20100619102729.2ce12447@hyperion.delvare> (raw)
In-Reply-To: <1276888405.2631.495.camel@groeck-laptop>
On Fri, 18 Jun 2010 12:13:25 -0700, Guenter Roeck wrote:
> On Fri, 2010-06-18 at 14:10 -0400, Jonathan Cameron wrote:
> > Another quick query. Are the _min / _max attributes as defined in the
> > abi meant for alarms? I always thought they were to tell userspace the
> > limits on measurement?
> >
> Good question. I thought it is supposed to refer to alarm limits, but I
> may be wrong.
>
> Browsing through a couple of drivers, it _looks_ like the values are
> used for alarm limits (eg adm1025 or lm85). Limits are not always set to
Yes, these are alarms. _min and _max are really misnomers, these should
have been _low and _high but by the time I realized it, _min and _max
were already de facto standards and it was too late to change this.
Documentation/hwmon/sysfs-interface says:
Usual items are "input" (measured value), "max" (high threshold,
"min" (low threshold).
Specific occurrences are then left without details. If you think this
document can be improved, I welcome patches.
> useful values, though. This is what my CPU board returns:
>
> lm85-i2c-0-2e
> Adapter: SMBus PIIX4 adapter at 0580
> V1.5: +1.80 V (min = +0.00 V, max = +3.32 V)
> VCore: +1.29 V (min = +0.00 V, max = +2.99 V)
> V3.3: +3.32 V (min = +0.00 V, max = +4.38 V)
> V5: +5.00 V (min = +0.00 V, max = +6.64 V)
> V12: +12.12 V (min = +0.00 V, max = +15.94 V)
>
> The lm85 datasheet says: "If a voltage input either exceeds the value
> set in the voltage high limit register or falls below the value set in
> the voltage low limit register, the corresponding bit will be set
> automatically by the LM85 in the interrupt status registers (41-42h)."
>
> > Either way, one of us has misunderstood so perhaps the documentation needs
> > to be more specific....
>
> Agreed.
--
Jean Delvare
next prev parent reply other threads:[~2010-06-19 8:27 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-18 16:06 [PATCH 0/3} hwmon: Driver for SMM665 Six-Channel Active DC Output Controller/Monitor Guenter Roeck
2010-06-18 16:06 ` [PATCH 1/3] " Guenter Roeck
2010-06-18 17:53 ` Jonathan Cameron
2010-06-18 18:10 ` [lm-sensors] " Jonathan Cameron
2010-06-18 19:13 ` Guenter Roeck
2010-06-19 8:27 ` Jean Delvare [this message]
2010-06-19 10:08 ` Jonathan Cameron
2010-06-18 20:56 ` Guenter Roeck
2010-06-18 21:37 ` [lm-sensors] " Jonathan Cameron
2010-06-18 21:54 ` Guenter Roeck
2010-06-19 8:23 ` Jean Delvare
2010-06-18 16:06 ` [PATCH 2/3] hwmon: SMM665 driver documentation Guenter Roeck
2010-06-18 16:06 ` [PATCH 3/3] hwmon: Update MAINTAINERS for smm665 driver Guenter Roeck
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=20100619102729.2ce12447@hyperion.delvare \
--to=khali@linux-fr.org \
--cc=akpm@linux-foundation.org \
--cc=broonie@opensource.wolfsonmicro.com \
--cc=guenter.roeck@ericsson.com \
--cc=hdegoede@redhat.com \
--cc=jic23@cam.ac.uk \
--cc=linux-kernel@vger.kernel.org \
--cc=lm-sensors@lm-sensors.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox