public inbox for linux-i2c@vger.kernel.org
 help / color / mirror / Atom feed
From: Jean Delvare <khali-PUYAD+kWke1g9hUCZPvPmw@public.gmane.org>
To: Rodolfo Giometti <giometti-AVVDYK/kqiJWk0Htik3J/w@public.gmane.org>
Cc: linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	Ben Dooks <ben-linux-elnMNo+KYs3YtjvyW6yDsg@public.gmane.org>
Subject: Re: [PATCH 1/2] i2c: add "reset" sysfs entry for adapters.
Date: Tue, 10 Feb 2009 11:44:38 +0100	[thread overview]
Message-ID: <20090210114438.67bfb5fb@hyperion.delvare> (raw)
In-Reply-To: <20090209204108.GH7975-AVVDYK/kqiJWk0Htik3J/w@public.gmane.org>

On Mon, 9 Feb 2009 21:41:08 +0100, Rodolfo Giometti wrote:
> On Mon, Feb 09, 2009 at 05:17:20PM +0100, Jean Delvare wrote:
> > On Fri,  6 Feb 2009 16:23:17 +0100, Rodolfo Giometti wrote:
> > > It could happen that an i2c adapter may lock the bus due due
> > 
> > Typo: "due due" -> "due to".
> 
> Ok.
> 
> > > electrical problems, so the user may recover this stale state by using:
> > > 
> > > 	$ echo 1 > /sys/class/i2c-adapter/i2c-0/reset
> > 
> > What is the intended purpose, debugging? I would certainly hope that
> > drivers know by themselves when they need a reset. Requiring users to
> > reset themselves doesn't sound terribly friendly :(
> 
> Unluckely not all adapter does it by themselfes! At least not PXA
> one. I'm currently work on adding this new feature.

Well, if you are going to fix the i2c-pxa driver, and it's the only
driver using the manual reset feature, then do we really need to add
this feature?

Don't get me wrong, if this feature is still useful then I am fine
adding it. But OTOH we still have to think twice when doing such core
changes, because they increase the memory footprint for all systems.

I am curious what other developers think. Me, I never felt the need for
a manual reset feature. Usually when I have managed to break an I2C
controller, cycling the driver would fix it, or if not, it was so
broken that I had to power-cycle the box anyway.

Are there other developers out there who consider the proposed manual
reset feature a good thing to have? Please speak up.

-- 
Jean Delvare

  parent reply	other threads:[~2009-02-10 10:44 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-06 15:23 [PATCH 1/2] i2c: add "reset" sysfs entry for adapters Rodolfo Giometti
     [not found] ` <1233933798-17673-1-git-send-email-giometti-k2GhghHVRtY@public.gmane.org>
2009-02-06 15:23   ` [PATCH 2/2] i2c pxa: add the force reset method Rodolfo Giometti
2009-02-09 14:55   ` [PATCH 1/2] i2c: add "reset" sysfs entry for adapters Ben Dooks
     [not found]     ` <20090209145546.GO8032-elnMNo+KYs3pIgCt6eIbzw@public.gmane.org>
2009-02-09 15:02       ` Rodolfo Giometti
     [not found]         ` <20090209150255.GA7975-AVVDYK/kqiJWk0Htik3J/w@public.gmane.org>
2009-02-09 15:28           ` Jean Delvare
     [not found]             ` <20090209162838.7cfeee94-ig7AzVSIIG7kN2dkZ6Wm7A@public.gmane.org>
2009-02-09 15:37               ` Rodolfo Giometti
2009-02-09 16:17   ` Jean Delvare
     [not found]     ` <20090209171720.76efd2c8-ig7AzVSIIG7kN2dkZ6Wm7A@public.gmane.org>
2009-02-09 20:41       ` Rodolfo Giometti
     [not found]         ` <20090209204108.GH7975-AVVDYK/kqiJWk0Htik3J/w@public.gmane.org>
2009-02-10 10:44           ` Jean Delvare [this message]
     [not found]             ` <20090210114438.67bfb5fb-ig7AzVSIIG7kN2dkZ6Wm7A@public.gmane.org>
2009-02-11 13:00               ` Rodolfo Giometti
     [not found]                 ` <20090211130028.GM8639-AVVDYK/kqiJWk0Htik3J/w@public.gmane.org>
2009-02-11 13:40                   ` Wolfram Sang
2009-02-13 17:39                   ` Jean Delvare
2009-02-10 10:33   ` Jean Delvare

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=20090210114438.67bfb5fb@hyperion.delvare \
    --to=khali-puyad+kwke1g9huczpvpmw@public.gmane.org \
    --cc=ben-linux-elnMNo+KYs3YtjvyW6yDsg@public.gmane.org \
    --cc=giometti-AVVDYK/kqiJWk0Htik3J/w@public.gmane.org \
    --cc=linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.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