From patchwork Mon Apr 6 09:58:48 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roger Quadros X-Patchwork-Id: 16508 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 n369x6vC020102 for ; Mon, 6 Apr 2009 09:59:34 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753384AbZDFJ7e (ORCPT ); Mon, 6 Apr 2009 05:59:34 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753662AbZDFJ7e (ORCPT ); Mon, 6 Apr 2009 05:59:34 -0400 Received: from smtp.nokia.com ([192.100.122.233]:26883 "EHLO mgw-mx06.nokia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753619AbZDFJ7e (ORCPT ); Mon, 6 Apr 2009 05:59:34 -0400 Received: from esebh106.NOE.Nokia.com (esebh106.ntc.nokia.com [172.21.138.213]) by mgw-mx06.nokia.com (Switch-3.2.6/Switch-3.2.6) with ESMTP id n369wxcY028817; Mon, 6 Apr 2009 12:59:26 +0300 Received: from vaebh104.NOE.Nokia.com ([10.160.244.30]) by esebh106.NOE.Nokia.com with Microsoft SMTPSVC(6.0.3790.3959); Mon, 6 Apr 2009 12:59:17 +0300 Received: from mgw-int02.ntc.nokia.com ([172.21.143.97]) by vaebh104.NOE.Nokia.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.3959); Mon, 6 Apr 2009 12:59:16 +0300 Received: from [172.21.39.110] (esdhcp039110.research.nokia.com [172.21.39.110]) by mgw-int02.ntc.nokia.com (Switch-3.2.5/Switch-3.2.5) with ESMTP id n369xFIg004095; Mon, 6 Apr 2009 12:59:15 +0300 Message-ID: <49D9D258.80008@nokia.com> Date: Mon, 06 Apr 2009 12:58:48 +0300 From: Roger Quadros User-Agent: Thunderbird 2.0.0.21 (X11/20090318) MIME-Version: 1.0 To: ext Tony Lindgren CC: linux-omap@vger.kernel.org Subject: [PATCH] MMC: OMAP: Flush posted write to IRQ X-OriginalArrivalTime: 06 Apr 2009 09:59:16.0982 (UTC) FILETIME=[58ED8960:01C9B69E] X-Nokia-AV: Clean Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org From: Roger Quadros Date: Mon, 6 Apr 2009 12:54:21 +0300 Subject: [PATCH] MMC: OMAP: Flush posted write to IRQ Flush posted write to IRQ status register in HSMMC interrupt handler to avoid spurious interrupts. This is in addition to commit id, b420f201e8c3bba92606fb98a032ee019804835d Signed-off-by: Roger Quadros --- drivers/mmc/host/omap_hsmmc.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/drivers/mmc/host/omap_hsmmc.c b/drivers/mmc/host/omap_hsmmc.c index ac51f0b..c1f09fa 100644 --- a/drivers/mmc/host/omap_hsmmc.c +++ b/drivers/mmc/host/omap_hsmmc.c @@ -415,6 +415,8 @@ static irqreturn_t mmc_omap_irq(int irq, void *dev_id) if (host->cmd == NULL && host->data == NULL) { OMAP_HSMMC_WRITE(host->base, STAT, OMAP_HSMMC_READ(host->base, STAT)); + /* Flush posted write to avoid spurious interrupt */ + OMAP_HSMMC_READ(host->base, STAT); return IRQ_HANDLED; }