* Re: [PATCH] i2c-omap: Make sure i2c bus is free before setting it to idle [not found] <1282808204-1689-1-git-send-email-mathias.nyman@nokia.com> @ 2010-08-26 7:41 ` Felipe Balbi 2010-09-16 22:40 ` Tony Lindgren 0 siblings, 1 reply; 3+ messages in thread From: Felipe Balbi @ 2010-08-26 7:41 UTC (permalink / raw) To: Nyman Mathias (Nokia-MS/Helsinki) Cc: linux-omap@vger.kernel.org, linux-i2c, ben-linux 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 ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] i2c-omap: Make sure i2c bus is free before setting it to idle 2010-08-26 7:41 ` [PATCH] i2c-omap: Make sure i2c bus is free before setting it to idle Felipe Balbi @ 2010-09-16 22:40 ` Tony Lindgren [not found] ` <20100916224050.GU29610-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org> 0 siblings, 1 reply; 3+ messages in thread From: Tony Lindgren @ 2010-09-16 22:40 UTC (permalink / raw) To: Felipe Balbi Cc: Nyman Mathias (Nokia-MS/Helsinki), linux-omap@vger.kernel.org, linux-i2c, ben-linux * Felipe Balbi <felipe.balbi@nokia.com> [100826 00:34]: > 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. Ben, can you please take this? The patchwork.kernel.org link is: http://patchwork.kernel.org/patch/133641/ Or let Mathias know if he should repost. Acked-by: Tony Lindgren <tony@atomide.com> > >--- > >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 > -- > To unsubscribe from this list: send the line "unsubscribe linux-i2c" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 3+ messages in thread
[parent not found: <20100916224050.GU29610-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>]
* Re: [PATCH] i2c-omap: Make sure i2c bus is free before setting it to idle [not found] ` <20100916224050.GU29610-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org> @ 2010-09-22 0:07 ` Ben Dooks 0 siblings, 0 replies; 3+ messages in thread From: Ben Dooks @ 2010-09-22 0:07 UTC (permalink / raw) To: Tony Lindgren Cc: Felipe Balbi, Nyman Mathias (Nokia-MS/Helsinki), linux-omap-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-i2c-u79uwXL29TY76Z2rM5mHXA, ben-linux-elnMNo+KYs3YtjvyW6yDsg On Thu, Sep 16, 2010 at 03:40:50PM -0700, Tony Lindgren wrote: > * Felipe Balbi <felipe.balbi-xNZwKgViW5gAvxtiuMwx3w@public.gmane.org> [100826 00:34]: > > 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-xNZwKgViW5gAvxtiuMwx3w@public.gmane.org> > > > > adding linux-i2c and Ben Dooks to Cc list. > > Ben, can you please take this? The patchwork.kernel.org link is: thanks, added to for-linus/2636-rc6-i2c -- Ben Q: What's a light-year? A: One-third less calories than a regular year. ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-09-22 0:07 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <1282808204-1689-1-git-send-email-mathias.nyman@nokia.com>
2010-08-26 7:41 ` [PATCH] i2c-omap: Make sure i2c bus is free before setting it to idle Felipe Balbi
2010-09-16 22:40 ` Tony Lindgren
[not found] ` <20100916224050.GU29610-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>
2010-09-22 0:07 ` Ben Dooks
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).