linux-i2c.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Oliver Neukum <oneukum@suse.com>
To: Hans de Goede <hdegoede@redhat.com>, Max Staudt <mstaudt@suse.de>
Cc: linux-i2c@vger.kernel.org
Subject: Re: entering the error case of i2c-designware with a timeout at probe
Date: Tue, 21 Mar 2017 16:37:24 +0100	[thread overview]
Message-ID: <1490110644.8154.26.camel@suse.com> (raw)
In-Reply-To: <a94f4a5c-dd31-5654-8ca6-c2cc2b22d79a@redhat.com>

Am Dienstag, den 21.03.2017, 15:48 +0100 schrieb Hans de Goede:
> Hi,
> 
> On 21-03-17 15:05, Oliver Neukum wrote:

Hi,

> > I am quite uncomfortable with code in the kernel that will crash
> > the machine if it ever runs. Yet I am also uncomfortable with code
> > that would run forever.
> 
> That is exactly how I feel, I did not realize (yet) that taking
> the error path would always cause a freeze later, I've been assuming
> that the timeout was caused by the bus already being stuck, not
> that the timeout would cause the bus to get stuck because a
> semaphore request must be followed through on.

Those options are not mutually exclusive.

> If your theory is right we may well want to bump up the timeout
> to say 2 or 3 seconds.

We never saw a failure with 500ms. That is pretty solid.
Yet a true error would likely have catastrophic results.
It seems to me that the problem is not when to proceed
to error handling, but how the error is handled.
Do you have any documentation on that?
Should we forcibly set the semaphore to the state that signifies
a successful take over?

	Regards
		Oliver

  reply	other threads:[~2017-03-21 15:38 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-21 12:52 entering the error case of i2c-designware with a timeout at probe Oliver Neukum
2017-03-21 12:57 ` Max Staudt
2017-03-21 13:01   ` Hans de Goede
2017-03-21 13:36     ` Oliver Neukum
2017-03-21 13:55       ` Hans de Goede
2017-03-21 14:05         ` Oliver Neukum
2017-03-21 14:48           ` Hans de Goede
2017-03-21 15:37             ` Oliver Neukum [this message]
2017-03-21 15:40               ` Hans de Goede
2017-03-21 13:00 ` 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=1490110644.8154.26.camel@suse.com \
    --to=oneukum@suse.com \
    --cc=hdegoede@redhat.com \
    --cc=linux-i2c@vger.kernel.org \
    --cc=mstaudt@suse.de \
    /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;
as well as URLs for NNTP newsgroup(s).