All of lore.kernel.org
 help / color / mirror / Atom feed
From: mds4@verizon.net (Mark Studebaker)
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: <40DCA811.4080206@verizon.net> (raw)
In-Reply-To: <Pine.LNX.4.58.0406250822110.16214@malachi.lee.k12.nc.us>

A clarification:

The w83l785ts error handling is in the 2.6 kernel version only.

The adm1021 driver has error handling in the 2.4 kernel version only.

mds


Jean Delvare wrote:
>>I was reading through the lm87 code and noted (unless I am missing
>>something...highly possible) that an error return code from the I2C layer
>>seems to be ignored.  First off, am I reading this right, and secondly
>>is this on purpose (i.e. is there some reason that this is the right thing
>>to do that I am not getting)?
> 
> 
> Please review the 50 other chip drivers. If you can find one which *does*
> handle i2c-layer errors properly, let me know ;) [1]
> 
> More seriously, no, you're not missing anything. All our drivers are
> shamelessly ignoring errors. This has been reported many times, see for
> example these tickets:
> http://www2.lm-sensors.nu/~lm78/readticket.cgi?ticketQ7
> http://www2.lm-sensors.nu/~lm78/readticket.cgi?ticket…5
> And there's probably more in both the ticket base and the mailing-list
> archive.
> 
> The (bad) reason behind this is that most likely, if there are read
> errors, the driver will be unusable anyway.
> 
> [1] The only driver handling the errors correctly as far as I know is the
> w83l785ts. I implemented it because there is a popular Asus board using
> this chip and Asus' C.O.P. "feature" interacts with the chip
> repeatedly, causing frequent (as in a few percents) read errors.
> Detecting such errors and retrying reading fixes the problem in most
> cases.
> 
> A similar method could be implemented in other chips, but when people
> complain, we usually spend time trying to fix their bus (either driver
> or hardware) instead, since that's what is really needed.
> 
> At any rate, I would not work on this in 2.4 anymore, but more likely in
> 2.6, where having more "serious" drivers would be welcome.
> 
> Thanks,
> Jean Delvare
> 
> 

  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
2005-05-19  6:25 ` Jean Delvare
2005-05-19  6:25 ` Mark Studebaker [this message]
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=40DCA811.4080206@verizon.net \
    --to=mds4@verizon.net \
    --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.