From patchwork Thu Aug 20 16:21:15 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Sonasath, Moiz" X-Patchwork-Id: 42967 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n7KGGdla008370 for ; Thu, 20 Aug 2009 16:16:39 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754874AbZHTQQe (ORCPT ); Thu, 20 Aug 2009 12:16:34 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754873AbZHTQQe (ORCPT ); Thu, 20 Aug 2009 12:16:34 -0400 Received: from comal.ext.ti.com ([198.47.26.152]:53366 "EHLO comal.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754863AbZHTQQd (ORCPT ); Thu, 20 Aug 2009 12:16:33 -0400 Received: from dlep36.itg.ti.com ([157.170.170.91]) by comal.ext.ti.com (8.13.7/8.13.7) with ESMTP id n7KGGKR1004243; Thu, 20 Aug 2009 11:16:25 -0500 Received: from legion.dal.design.ti.com (localhost [127.0.0.1]) by dlep36.itg.ti.com (8.13.8/8.13.8) with ESMTP id n7KGGIhQ016437; Thu, 20 Aug 2009 11:16:18 -0500 (CDT) Received: from lina0132712 (lina0132712.am.dhcp.ti.com [128.247.79.146]) by legion.dal.design.ti.com (8.11.7p1+Sun/8.11.7) with ESMTP id n7KGGHZ05753; Thu, 20 Aug 2009 11:16:17 -0500 (CDT) Received: by lina0132712 (Postfix, from userid 1000) id 11BB49D1AB; Thu, 20 Aug 2009 11:21:17 -0500 (CDT) From: Moiz Sonasath To: linux-i2c@vger.kernel.org Cc: linux-omap@vger.kernel.org, ben-linux@fluff.org, Moiz Sonasath , Vikram Pandita Subject: [PATCH 2/3] i2c-omap: ACK pending [R/X]DR and [R/X]RDY interrupts Date: Thu, 20 Aug 2009 11:21:15 -0500 Message-Id: <1250785276-31713-3-git-send-email-m-sonasath@ti.com> X-Mailer: git-send-email 1.5.6.3 In-Reply-To: <1250785276-31713-2-git-send-email-m-sonasath@ti.com> References: <1250785276-31713-1-git-send-email-m-sonasath@ti.com> <1250785276-31713-2-git-send-email-m-sonasath@ti.com> Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org ACK any pending read/write interrupts before exiting the ISR either after completing the operation [ARDY interrupt] or in case of an error [NACK|AL interrupt] Signed-off-by: Moiz Sonasath Signed-off-by: Vikram Pandita --- drivers/i2c/busses/i2c-omap.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/drivers/i2c/busses/i2c-omap.c b/drivers/i2c/busses/i2c-omap.c index 94639d0..16b39f4 100644 --- a/drivers/i2c/busses/i2c-omap.c +++ b/drivers/i2c/busses/i2c-omap.c @@ -694,6 +694,9 @@ complete: } if (stat & (OMAP_I2C_STAT_ARDY | OMAP_I2C_STAT_NACK | 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_complete_cmd(dev, err); return IRQ_HANDLED; }