From patchwork Tue Aug 25 10:28:57 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hiroshi DOYU X-Patchwork-Id: 43740 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 n7PATr83010485 for ; Tue, 25 Aug 2009 10:29:53 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754447AbZHYK3H (ORCPT ); Tue, 25 Aug 2009 06:29:07 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752990AbZHYK3H (ORCPT ); Tue, 25 Aug 2009 06:29:07 -0400 Received: from smtp.nokia.com ([192.100.105.134]:43507 "EHLO mgw-mx09.nokia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753206AbZHYK3G (ORCPT ); Tue, 25 Aug 2009 06:29:06 -0400 Received: from vaebh105.NOE.Nokia.com (vaebh105.europe.nokia.com [10.160.244.31]) by mgw-mx09.nokia.com (Switch-3.3.3/Switch-3.3.3) with ESMTP id n7PARpHx022078 for ; Tue, 25 Aug 2009 05:28:37 -0500 Received: from esebh102.NOE.Nokia.com ([172.21.138.183]) by vaebh105.NOE.Nokia.com with Microsoft SMTPSVC(6.0.3790.3959); Tue, 25 Aug 2009 13:29:00 +0300 Received: from mgw-sa02.ext.nokia.com ([147.243.1.48]) by esebh102.NOE.Nokia.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.3959); Tue, 25 Aug 2009 13:28:59 +0300 Received: from oreo.research.nokia.com (esdhcp04130.research.nokia.com [172.21.41.30]) by mgw-sa02.ext.nokia.com (Switch-3.3.3/Switch-3.3.3) with ESMTP id n7PASvSu025479 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO) for ; Tue, 25 Aug 2009 13:28:58 +0300 Received: from doyu by oreo.research.nokia.com with local (Exim 4.69) (envelope-from ) id 1MftGr-0004FP-SH; Tue, 25 Aug 2009 13:28:57 +0300 From: Hiroshi DOYU To: linux-omap@vger.kernel.org Cc: Hiroshi DOYU Subject: [PATCH 1/1] omap mailbox: flush posted write when acking mailbox irq Date: Tue, 25 Aug 2009 13:28:57 +0300 Message-Id: <1251196137-16308-1-git-send-email-Hiroshi.DOYU@nokia.com> X-Mailer: git-send-email 1.6.0.4 X-OriginalArrivalTime: 25 Aug 2009 10:28:59.0473 (UTC) FILETIME=[DB9ED410:01CA256E] X-Nokia-AV: Clean Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org 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,