linux-i2c.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Felipe Balbi <felipe.balbi@nokia.com>
To: "Nyman Mathias (Nokia-MS/Helsinki)" <Mathias.Nyman@nokia.com>
Cc: "linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>,
	linux-i2c@vger.kernel.org, ben-linux@fluff.org
Subject: Re: [PATCH] i2c-omap: Make sure i2c bus is free before setting it to idle
Date: Thu, 26 Aug 2010 10:41:18 +0300	[thread overview]
Message-ID: <20100826074118.GH23263@nokia.com> (raw)
In-Reply-To: <1282808204-1689-1-git-send-email-mathias.nyman@nokia.com>

Hi,

On Thu, Aug 26, 2010 at 09:36:44AM +0200, Nyman Mathias (Nokia-MS/Helsinki) wrote:
>If the i2c bus receives an interrupt with both BB (bus busy) and
>ARDY (register access ready) statuses set during the tranfer of the last message
>the bus was put to idle while still busy.
>
>This caused bus to timeout.
>
>Signed-off-by: Mathias Nyman <mathias.nyman@nokia.com>

adding linux-i2c and Ben Dooks to Cc list.

>---
> drivers/i2c/busses/i2c-omap.c |    2 ++
> 1 files changed, 2 insertions(+), 0 deletions(-)
>
>diff --git a/drivers/i2c/busses/i2c-omap.c b/drivers/i2c/busses/i2c-omap.c
>index 824ac1c..3271ce1 100644
>--- a/drivers/i2c/busses/i2c-omap.c
>+++ b/drivers/i2c/busses/i2c-omap.c
>@@ -602,6 +602,8 @@ omap_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg msgs[], int num)
>
> 	if (r == 0)
> 		r = num;
>+
>+	omap_i2c_wait_for_bb(dev);
> out:
> 	omap_i2c_idle(dev);
> 	return r;
>-- 
>1.5.6.5
>
>--
>To unsubscribe from this list: send the line "unsubscribe linux-omap" in
>the body of a message to majordomo@vger.kernel.org
>More majordomo info at  http://vger.kernel.org/majordomo-info.html

-- 
balbi

DefectiveByDesign.org

       reply	other threads:[~2010-08-26  7:41 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1282808204-1689-1-git-send-email-mathias.nyman@nokia.com>
2010-08-26  7:41 ` Felipe Balbi [this message]
2010-09-16 22:40   ` [PATCH] i2c-omap: Make sure i2c bus is free before setting it to idle Tony Lindgren
     [not found]     ` <20100916224050.GU29610-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>
2010-09-22  0:07       ` Ben Dooks

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=20100826074118.GH23263@nokia.com \
    --to=felipe.balbi@nokia.com \
    --cc=Mathias.Nyman@nokia.com \
    --cc=ben-linux@fluff.org \
    --cc=linux-i2c@vger.kernel.org \
    --cc=linux-omap@vger.kernel.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).