From: Jean Delvare <khali@linux-fr.org>
To: lm-sensors@vger.kernel.org
Subject: Re: [lm-sensors] Problem with:
Date: Mon, 15 Dec 2008 13:24:48 +0000 [thread overview]
Message-ID: <20081215142448.3fe6b311@hyperion.delvare> (raw)
In-Reply-To: <494652C1.8060506@redhat.com>
Hi Hans,
On Mon, 15 Dec 2008 13:51:13 +0100, Hans de Goede wrote:
> I just realised there is an issue with the
> hwmon-f71882fg-11-separate-max-crit-alarm-and-beep.patch
> patch.
>
> It removes the temp#_alarm attributes (replacing them by temp#_max_alarm),
> which is fine for lm_sensors v3, but will cause a problem with lm_sensors v2,
> the "sensors" command from lm_sensors v2 will now give failed to read data for
> temp# for all 3 temps :(
Indeed. I admit I didn't think about lm_sensors v2 when reviewing your
patch. This is probably a good reason to _not_ add support for new
chips to lm_sensors v2. Owners of such recent hardware should really
use lm_sensors v3 anyway.
> So it looks like we are sorta stuck with our past mistake of not doing separate
> alarms.
>
> We could do separate alarms like this:
> temp#_alarm
> temp#_crit_alarm
>
> This will work with both libsensors and with "sensors" from both v2 and v3.
It's a bit confusing due to the asymmetry, but I admit it should work
fine in practice. Feel free to send an updated patch doing this.
Including an explanation of why we do this, so that someone reading the
code in 3 or 4 years can understand the idea behind it.
--
Jean Delvare
_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
next prev parent reply other threads:[~2008-12-15 13:24 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-15 12:51 [lm-sensors] Problem with: Hans de Goede
2008-12-15 13:24 ` Jean Delvare [this message]
2008-12-16 10:07 ` Jean Delvare
2008-12-16 13:40 ` Hans de Goede
2008-12-16 14:57 ` Jean Delvare
2008-12-16 15:10 ` Hans de Goede
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=20081215142448.3fe6b311@hyperion.delvare \
--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.