All of lore.kernel.org
 help / color / mirror / Atom feed
From: Moiz Sonasath <m-sonasath@ti.com>
To: linux-omap@vger.kernel.org
Cc: Moiz Sonasath <m-sonasath@ti.com>,
	Vikram Pandita <vikram.pandita@ti.com>
Subject: [PATCH 2/3] i2c-omap: ACK pending [R/X]DR and [R/X]RDY interrupts
Date: Mon, 17 Aug 2009 17:45:45 -0500	[thread overview]
Message-ID: <1250549146-18362-3-git-send-email-m-sonasath@ti.com> (raw)
In-Reply-To: <1250549146-18362-2-git-send-email-m-sonasath@ti.com>

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 <m-sonasath@ti.com>
Signed-off-by: Vikram Pandita <vikram.pandita@ti.com>
---
 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;
 		}
-- 
1.5.6.3


  reply	other threads:[~2009-08-17 22:40 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-17 22:45 [PATCH 0/3] *** SUBJECT HERE *** Moiz Sonasath
2009-08-17 22:45 ` [PATCH 1/3] i2c-omap: Fix I2C status ACK Moiz Sonasath
2009-08-17 22:45   ` Moiz Sonasath [this message]
2009-08-17 22:45     ` [PATCH 3/3] i2c-omap: Enable workaround for Errata 1.153 based on Moiz Sonasath
2009-08-18  7:04       ` Paul Walmsley
  -- strict thread matches above, loose matches on Subject: below --
2009-08-20 16:21 [PATCH 0/3] i2c-omap: I2C clean-up patch Moiz Sonasath
2009-08-20 16:21 ` [PATCH 1/3] i2c-omap: Fix I2C status ACK Moiz Sonasath
2009-08-20 16:21   ` [PATCH 2/3] i2c-omap: ACK pending [R/X]DR and [R/X]RDY interrupts Moiz Sonasath
     [not found] <1250548931-18279-1-git-send-email-n>
     [not found] ` <1250548931-18279-2-git-send-email-n>
2009-08-17 22:42   ` Unknown, n

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=1250549146-18362-3-git-send-email-m-sonasath@ti.com \
    --to=m-sonasath@ti.com \
    --cc=linux-omap@vger.kernel.org \
    --cc=vikram.pandita@ti.com \
    /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.