mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Jean Delvare <khali@linux-fr.org>
To: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Chris Wilson <chris@chris-wilson.co.uk>,
	Knut Petersen <Knut_Petersen@t-online.de>,
	airlied@linux.ie, eric@anholt.net, jesse.barnes@intel.com,
	linux-kernel@vger.kernel.org,
	intel-gfx <intel-gfx@lists.freedesktop.org>,
	gregkh@suse.de
Subject: Re: [PATCH] Fix i915 drm regression on AOpen i915GMm-HFS motherboard
Date: Wed, 4 Apr 2012 18:23:48 +0200	[thread overview]
Message-ID: <20120404182348.10baa7f6@endymion.delvare> (raw)
In-Reply-To: <AANLkTi=JGSL5=cXRJgv857AXx64OvWzz8TAS4XJNHtW8@mail.gmail.com>

On Mon, 3 Jan 2011 12:26:07 -0800, Linus Torvalds wrote:
> [ related, but independent, issue ]
> 
> On Mon, Jan 3, 2011 at 11:59 AM, Chris Wilson <chris@chris-wilson.co.uk> wrote:
> >
> >                            That function currently requires
> > GMBUS to differentiate between a NAK and an IO error (bitbanging just
> > returns EREMOTEIO regardless, iirc).
> 
> Hmm. That sounds like something that would be worth fixing regardless
> and independently of this. I'd expect that a lot of users would care
> whether there was an actual protocol error or whether the command got
> a NAK. There's a big difference between "those lines don't seem to
> even be connected to anything" and "the other end didn't like us".
> 
> Even the comments in the bitbanging code seem to say that it should be
> returning ETIMEDOUT etc for when there is no answer (and the low-level
> "i2c_outb()" seems to do that), but then the code does seem to ignore
> all that information and turn all errors into EREMOTEIO.
> 
> Which sounds bogus.
> 
> Added Jean to the cc in case he has some input (or knows who we should
> bug about algo-bit.c). Also David Brownell, because he touched an
> error code in that file two and a half years ago, so he now owns it
> forever ;)

For the records, I did fix the bogus error codes in i2c-algo-bit in:

>From abc01b2718ee1d26e83c4c62c4b79806b3240ac7
From: Jean Delvare <khali@linux-fr.org>
Date: Sun, 30 Oct 2011 13:47:25 +0100
Subject: [PATCH] i2c-algo-bit: Return standard fault codes

Adjust i2c-algo-bit to return fault codes compliant with
Documentation/i2c/fault-codes, rather than the undocumented and
vague -EREMOTEIO.



R.I.P David...

-- 
Jean Delvare

  reply	other threads:[~2012-04-04 16:24 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-03 14:25 Knut Petersen
2011-01-03 14:54 ` Chris Wilson
2011-01-03 18:12   ` Knut Petersen
2011-01-03 19:45     ` Linus Torvalds
2011-01-03 19:59       ` Chris Wilson
2011-01-03 20:26         ` Linus Torvalds
2012-04-04 16:23           ` Jean Delvare [this message]
2011-01-03 23:09         ` Knut Petersen
2011-01-03 23:22           ` Chris Wilson
2011-01-04  0:35             ` Knut Petersen

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=20120404182348.10baa7f6@endymion.delvare \
    --to=khali@linux-fr.org \
    --cc=Knut_Petersen@t-online.de \
    --cc=airlied@linux.ie \
    --cc=chris@chris-wilson.co.uk \
    --cc=eric@anholt.net \
    --cc=gregkh@suse.de \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=jesse.barnes@intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@linux-foundation.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

all inboxes | Powered by JetHome®