Skip to contentSkip to conversation

MMC: OMAP: Flush posted write to IRQ

PATCH In review Roger Quadros 2 participants 2 messages Apr 6, 2009

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 MMC: OMAP: Flush posted write to IRQ

From: Roger Quadros <[email protected]>
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

---
 drivers/mmc/host/omap_hsmmc.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
drivers/mmc/host/omap_hsmmc.c +2 -0
index ac51f0b..c1f09fa 100644
@@ -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;
 	}
 
Signature · 1 line
1.5.6.3