linux-i2c.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Shiraz Hashim <shiraz.hashim-qxv4g6HH51o@public.gmane.org>
To: Viresh Kumar <viresh.kumar-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
Cc: Wolfram Sang <wsa-z923LK4zBo2bacvFa/9K2g@public.gmane.org>,
	Rajeev kumar <rajeev-dlh.kumar-qxv4g6HH51o@public.gmane.org>,
	u.kleine-koenig-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org,
	khali-PUYAD+kWke1g9hUCZPvPmw@public.gmane.org,
	ben-linux-elnMNo+KYs3YtjvyW6yDsg@public.gmane.org,
	linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	spear-devel-nkJGhpqTU55BDgjK7y7TUQ@public.gmane.org,
	paul-YHLC2tV1sDlxR4N9A70vTlRxknfHcPLb9dF7HbQ/qKg@public.gmane.org,
	Andrew Morton
	<akpm-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b@public.gmane.org>
Subject: Re: [PATCH V10 1/2] i2c/adapter: Add bus recovery infrastructure
Date: Thu, 21 Mar 2013 16:04:46 +0530	[thread overview]
Message-ID: <20130321103446.GM7107@localhost.localdomain> (raw)
In-Reply-To: <CAKohpo=NdN64bJ_uD4cZ_aJppz+zschYFMyoP=-2c+NfuOqFfg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>

On Thu, Mar 21, 2013 at 03:45:29PM +0530, Viresh Kumar wrote:
> On 21 March 2013 15:06, Wolfram Sang <wsa-z923LK4zBo2bacvFa/9K2g@public.gmane.org> wrote:
> > I applied V11 of the core changes with minor modifications.
> 
> Wow!! Thanks.
> 
> > I do wonder
> > about the hook in the designware driver. You apply the recovery on
> > transfer timeout. I think this should go into the timeout of
> > i2c_dw_wait_bus_not_busy()?
> 
> Hmm.. Rajeev/Shiraz were the guys who tested this code earlier and i am
> sure we were failing in this piece of code, which i just fixed and so
> i2c_dw_wait_bus_not_busy() didn't fail for us.
> 
> Below is a conversation that we had with Uwe some time back on the exact
> problem we faced and it was a bit different from the traditional problem.
> 
> So, maybe we need bus recovery at both places: i2c_dw_wait_bus_not_busy()
> (for the traditional hang) and during transfer (for our case).

DW_IC_STATUS_ACTIVITY check in i2c_dw_wait_bus_not_busy actually
only represents controller activity status and has nothing to do
with real bus status.

--
regards
Shiraz

  parent reply	other threads:[~2013-03-21 10:34 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-25  9:47 [PATCH V10 1/2] i2c/adapter: Add bus recovery infrastructure Viresh Kumar
     [not found] ` <59a73d182bf1ce330becf32ad780f3501a57aed0.1359106966.git.viresh.kumar-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2013-01-25  9:47   ` [PATCH V10 2/2] i2c/designware: Provide i2c bus recovery support Viresh Kumar
     [not found]     ` <f7d8d29a338704deaa7a542f9a213fc7696625c9.1359106966.git.viresh.kumar-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2013-04-05  6:42       ` Viresh Kumar
     [not found]         ` <CAKohpom=DQDv6v7xwnCRvtWBxC+a5mGZeOv=ad8AjKwV2yGBow-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-05-13  9:18           ` Viresh Kumar
     [not found]             ` <CAKohpokAPohg2aAjawLN2t_Jh29CZAuiWqKz2ah-bJP9Dw4YvA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-05-31 10:50               ` Viresh Kumar
2013-01-25  9:48   ` [PATCH V10 1/2] i2c/adapter: Add bus recovery infrastructure Viresh Kumar
2013-01-25 11:13   ` Wolfram Sang
     [not found]     ` <20130125111322.GA2649-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
2013-01-26  5:13       ` Viresh Kumar
     [not found]         ` <CAKohpok2arxhsAt3xOxRCZZjvLMTed1EYX3ZRUSQ3733wx2mMw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-01-31  2:28           ` Viresh Kumar
     [not found]             ` <CAKohpokNVPOvAc=Gbxn4ZquPnG4huukDmwhOsqaV51p0aRo8xw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-03-15  8:51               ` Viresh Kumar
     [not found]                 ` <CAKohpokCqe7LHFMn0t7EivTQ7US9Fp=07nowGP2H2ujeDKbHXg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-03-15  9:13                   ` Viresh Kumar
     [not found]                     ` <CAKohpondDBBjTQYgV9XOFMYp_aKO+SdeRR1gjxe1ovTLuOm2Wg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-03-21  9:36                       ` Wolfram Sang
     [not found]                         ` <20130321093648.GA19297-z923LK4zBo2bacvFa/9K2g@public.gmane.org>
2013-03-21 10:15                           ` Viresh Kumar
     [not found]                             ` <CAKohpo=NdN64bJ_uD4cZ_aJppz+zschYFMyoP=-2c+NfuOqFfg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-03-21 10:34                               ` Shiraz Hashim [this message]
2013-03-24 14:07                           ` Viresh Kumar
     [not found]                             ` <CAKohpokQY=g1eUrwwydA4mMruebt2xZinLPCL5_+mkg4oediEQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-04-01  6:45                               ` Viresh Kumar

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=20130321103446.GM7107@localhost.localdomain \
    --to=shiraz.hashim-qxv4g6hh51o@public.gmane.org \
    --cc=akpm-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b@public.gmane.org \
    --cc=ben-linux-elnMNo+KYs3YtjvyW6yDsg@public.gmane.org \
    --cc=khali-PUYAD+kWke1g9hUCZPvPmw@public.gmane.org \
    --cc=linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=paul-YHLC2tV1sDlxR4N9A70vTlRxknfHcPLb9dF7HbQ/qKg@public.gmane.org \
    --cc=rajeev-dlh.kumar-qxv4g6HH51o@public.gmane.org \
    --cc=spear-devel-nkJGhpqTU55BDgjK7y7TUQ@public.gmane.org \
    --cc=u.kleine-koenig-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org \
    --cc=viresh.kumar-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org \
    --cc=wsa-z923LK4zBo2bacvFa/9K2g@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;
as well as URLs for NNTP newsgroup(s).