From patchwork Fri Nov 12 01:03:27 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tony Lindgren X-Patchwork-Id: 318472 X-Patchwork-Delegate: tony@atomide.com Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id oAC13Zbv022133 for ; Fri, 12 Nov 2010 01:03:35 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755566Ab0KLBDe (ORCPT ); Thu, 11 Nov 2010 20:03:34 -0500 Received: from mho-01-ewr.mailhop.org ([204.13.248.71]:51093 "EHLO mho-01-ewr.mailhop.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755401Ab0KLBDe (ORCPT ); Thu, 11 Nov 2010 20:03:34 -0500 Received: from c-67-188-36-105.hsd1.ca.comcast.net ([67.188.36.105] helo=baageli.muru.com) by mho-01-ewr.mailhop.org with esmtpa (Exim 4.68) (envelope-from ) id 1PGi3B-0002qi-J3; Fri, 12 Nov 2010 01:03:33 +0000 X-Mail-Handler: MailHop Outbound by DynDNS X-Originating-IP: 67.188.36.105 X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/mailhop/outbound_abuse.html for abuse reporting information) X-MHO-User: U2FsdGVkX1+maQMGcjBoFIiz4+94ivLA Subject: [PATCH 2/4] omap: dma: Add read-back to DMA interrupt handler to avoid spuriousinterrupts To: linux-arm-kernel@lists.infradead.org From: Tony Lindgren Cc: Santosh Shilimkar , linux-omap@vger.kernel.org, Mathias Nyman Date: Thu, 11 Nov 2010 17:03:27 -0800 Message-ID: <20101112010327.3827.3366.stgit@baageli.muru.com> In-Reply-To: <20101112010245.3827.75329.stgit@baageli.muru.com> References: <20101112010245.3827.75329.stgit@baageli.muru.com> User-Agent: StGit/0.15 MIME-Version: 1.0 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Fri, 12 Nov 2010 01:03:35 +0000 (UTC) diff --git a/arch/arm/plat-omap/dma.c b/arch/arm/plat-omap/dma.c index f5c5b8d..2c28265 100644 --- a/arch/arm/plat-omap/dma.c +++ b/arch/arm/plat-omap/dma.c @@ -1983,6 +1983,8 @@ static int omap2_dma_handle_ch(int ch) dma_write(OMAP2_DMA_CSR_CLEAR_MASK, CSR(ch)); dma_write(1 << ch, IRQSTATUS_L0); + /* read back the register to flush the write */ + dma_read(IRQSTATUS_L0); /* If the ch is not chained then chain_id will be -1 */ if (dma_chan[ch].chain_id != -1) {