diff mbox

[1/1] omap mailbox: flush posted write when acking mailbox irq

Message ID 1251196137-16308-1-git-send-email-Hiroshi.DOYU@nokia.com (mailing list archive)
State Accepted
Commit bc60fc7b5b36b8ec1c24914070348f7f596df1ef
Headers show

Commit Message

Hiroshi DOYU Aug. 25, 2009, 10:28 a.m. UTC
None

Comments

Tony Lindgren Sept. 22, 2009, 5:47 p.m. UTC | #1
This patch has been applied to the linux-omap
by youw fwiendly patch wobot.

Branch in linux-omap: omap-fixes

Initial commit ID (Likely to change): bc60fc7b5b36b8ec1c24914070348f7f596df1ef

PatchWorks
http://patchwork.kernel.org/patch/43740/

Git (Likely to change, and takes a while to get mirrored)
http://git.kernel.org/?p=linux/kernel/git/tmlind/linux-omap-2.6.git;a=commit;h=bc60fc7b5b36b8ec1c24914070348f7f596df1ef


--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/arch/arm/mach-omap2/mailbox.c b/arch/arm/mach-omap2/mailbox.c
index 6f71f37..934dae5 100644
--- a/arch/arm/mach-omap2/mailbox.c
+++ b/arch/arm/mach-omap2/mailbox.c
@@ -156,6 +156,9 @@  static void omap2_mbox_ack_irq(struct omap_mbox *mbox,
 	u32 bit = (irq == IRQ_TX) ? p->notfull_bit : p->newmsg_bit;
 
 	mbox_write_reg(bit, p->irqstatus);
+
+	/* Flush posted write for irq status to avoid spurious interrupts */
+	mbox_read_reg(p->irqstatus);
 }
 
 static int omap2_mbox_is_irq(struct omap_mbox *mbox,