All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jarkko Nikula <jhnikula-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: Keerthy <j-keerthy-l0cyMroinI0@public.gmane.org>
Cc: ben-i2c-elnMNo+KYs3YtjvyW6yDsg@public.gmane.org,
	linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	linux-omap-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	Richard woodruff <r-woodruff2-l0cyMroinI0@public.gmane.org>
Subject: Re: [PATCH] i2c-omap: Double clear of ARDY status in IRQ handler
Date: Fri, 11 Feb 2011 12:50:59 +0200	[thread overview]
Message-ID: <20110211125059.04f17162.jhnikula@gmail.com> (raw)
In-Reply-To: <1297406718-24147-1-git-send-email-j-keerthy-l0cyMroinI0@public.gmane.org>

On Fri, 11 Feb 2011 12:15:18 +0530
Keerthy <j-keerthy-l0cyMroinI0@public.gmane.org> wrote:

> From: Richard woodruff <r-woodruff2-l0cyMroinI0@public.gmane.org>
> 
> ProDB00017052 - ARDY interrupt reasserted after being cleared.
> This errata caused intermittent i2c instabilty(1 error per 3 hours) on several
> customer platforms. After applying the workaround the intermittent errors were
> not seen. This is not captured in the usual errata documents.
> 
> The workaround is to have a double clear of ARDY status in
> irq handler.
> 
> Signed-off-by: Richard woodruff <r-woodruff2-l0cyMroinI0@public.gmane.org>
> Signed-off-by: Keerthy <j-keerthy-l0cyMroinI0@public.gmane.org>
> ---
>  drivers/i2c/busses/i2c-omap.c |    3 ++-
>  1 files changed, 2 insertions(+), 1 deletions(-)
> 
> diff --git a/drivers/i2c/busses/i2c-omap.c b/drivers/i2c/busses/i2c-omap.c
> index 445de08..9bcefae 100644
> --- a/drivers/i2c/busses/i2c-omap.c
> +++ b/drivers/i2c/busses/i2c-omap.c
> @@ -851,7 +851,8 @@ complete:
>  					OMAP_I2C_STAT_AL)) {
>  			omap_i2c_ack_stat(dev, stat &
>  				(OMAP_I2C_STAT_RRDY | OMAP_I2C_STAT_RDR |
> -				OMAP_I2C_STAT_XRDY | OMAP_I2C_STAT_XDR));
> +				OMAP_I2C_STAT_XRDY | OMAP_I2C_STAT_XDR |
> +				OMAP_I2C_STAT_ARDY));

Most probably this is correct but I was just wondering are there any use
for ARDY interrupt (register access ready) anyway and is the ARDY here
caused by omap_i2c_write_reg for STAT_NACK in a few lines above.

Just my 2 cents about possible further patches (while this having the
priority as fixes the issue).

-- 
Jarkko

  parent reply	other threads:[~2011-02-11 10:50 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-11  6:45 [PATCH] i2c-omap: Double clear of ARDY status in IRQ handler Keerthy
     [not found] ` <1297406718-24147-1-git-send-email-j-keerthy-l0cyMroinI0@public.gmane.org>
2011-02-11 10:50   ` Jarkko Nikula [this message]
2011-02-14 10:01     ` J, KEERTHY
2011-02-15  0:05   ` Kevin Hilman
     [not found]     ` <877hd2xivn.fsf-l0cyMroinI0@public.gmane.org>
2011-02-15  4:43       ` J, KEERTHY
     [not found]         ` <AANLkTikdDsq0mku6Jakq-cxA3jYYHQ7CL0sjwJ6wzXNh-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-02-15 23:52           ` Ben Dooks
2011-02-16  4:00             ` J, KEERTHY

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=20110211125059.04f17162.jhnikula@gmail.com \
    --to=jhnikula-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
    --cc=ben-i2c-elnMNo+KYs3YtjvyW6yDsg@public.gmane.org \
    --cc=j-keerthy-l0cyMroinI0@public.gmane.org \
    --cc=linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=linux-omap-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=r-woodruff2-l0cyMroinI0@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 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.