From patchwork Thu Aug 26 07:36:44 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathias Nyman X-Patchwork-Id: 133641 X-Patchwork-Delegate: tony@atomide.com Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id o7Q7bG5c001320 for ; Thu, 26 Aug 2010 07:37:16 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752506Ab0HZHhF (ORCPT ); Thu, 26 Aug 2010 03:37:05 -0400 Received: from smtp.nokia.com ([192.100.122.233]:39459 "EHLO mgw-mx06.nokia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751621Ab0HZHhE (ORCPT ); Thu, 26 Aug 2010 03:37:04 -0400 Received: from vaebh106.NOE.Nokia.com (vaebh106.europe.nokia.com [10.160.244.32]) by mgw-mx06.nokia.com (Switch-3.3.3/Switch-3.3.3) with ESMTP id o7Q7aw78027216 for ; Thu, 26 Aug 2010 10:37:00 +0300 Received: from esebh102.NOE.Nokia.com ([172.21.138.183]) by vaebh106.NOE.Nokia.com with Microsoft SMTPSVC(6.0.3790.4675); Thu, 26 Aug 2010 10:36:50 +0300 Received: from mgw-da01.ext.nokia.com ([147.243.128.24]) by esebh102.NOE.Nokia.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.4675); Thu, 26 Aug 2010 10:36:49 +0300 Received: from localhost.localdomain (esdhcp038119.research.nokia.com [172.21.38.119]) by mgw-da01.ext.nokia.com (Switch-3.3.3/Switch-3.3.3) with ESMTP id o7Q7aiGk022061; Thu, 26 Aug 2010 10:36:45 +0300 From: Mathias Nyman To: linux-omap@vger.kernel.org Cc: Mathias Nyman Subject: [PATCH] i2c-omap: Make sure i2c bus is free before setting it to idle Date: Thu, 26 Aug 2010 10:36:44 +0300 Message-Id: <1282808204-1689-1-git-send-email-mathias.nyman@nokia.com> X-Mailer: git-send-email 1.5.6.5 X-OriginalArrivalTime: 26 Aug 2010 07:36:49.0436 (UTC) FILETIME=[71A0C5C0:01CB44F1] X-Nokia-AV: Clean Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Thu, 26 Aug 2010 07:37:16 +0000 (UTC) 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;