From: khali@linux-fr.org (Jean Delvare)
To: lm-sensors@vger.kernel.org
Subject: Return code of i2c transaction ignored in lm87
Date: Thu, 19 May 2005 06:25:02 +0000 [thread overview]
Message-ID: <20040627181010.4df42fbf.khali@linux-fr.org> (raw)
In-Reply-To: <Pine.LNX.4.58.0406250822110.16214@malachi.lee.k12.nc.us>
> How about this (and I am assuming I will eventually have to produce a
> patch with the lm87 driver and drill it down into lib sensors for any
> real by in). The routine that reads all the sensor data detects that
> there is error when reading one of the registers. In the event of
> such an error it sets a value to one in the chips structure (or a
> bit). If the read was succesful it sets it to zero. A new proc entry
> is created called perhaps readerror (please give me a better name).
> Whenever someone is scanning the the proc values they can check this
> proc entry to see if the last read of the registers had no errors. If
> it did not then all is well, if it did then the program can act
> appropriately (ultimately, I would hope sensors the program would
> return an error and print one). Also, when an error on a read is
> detected the syslog is notified.
>
> I haven't thought through writes yet, but how does that sound for
> making read errors visable to user space? This would not have to be
> implemented for all sensors either but if the mechansim was agreed
> upon implentation could occur as individuals cared.
Mmm, I don't see much benefit over what is done in w83l785ts.
With your method, the user application will be told that some of the
values are wrong, but not which ones. So every value will have to be
ignored. Second, every application will have to do it. I guess that the
application will return the old value instead in this case, which means
it'll have to remember it. All in all you want to do at the chip level
in user-space what my method (as implemented in the w83l785ts driver)
does at feature level in kernel-space, so it's finer grained and not
every application has to handle it. Since our chip drivers already cache
the old values, the amount of additional code needed is low.
Please take a look at what is done in w83l785ts and tell me why it
woudln't solve you problem, if it actually doesn't.
Thanks.
--
Jean Delvare
http://khali.linux-fr.org/
next prev parent reply other threads:[~2005-05-19 6:25 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-19 6:25 Return code of i2c transaction ignored in lm87 James Olin Oden
2005-05-19 6:25 ` Jean Delvare [this message]
2005-05-19 6:25 ` Jean Delvare
2005-05-19 6:25 ` Mark Studebaker
2005-05-19 6:25 ` Jean Delvare
2005-05-19 6:25 ` James Olin Oden
2005-05-19 6:25 ` Jean Delvare
2005-05-19 6:25 ` Jean Delvare
2005-05-19 6:25 ` James Olin Oden
2005-05-19 6:25 ` James Olin Oden
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=20040627181010.4df42fbf.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.