From patchwork Mon Oct 25 14:35:24 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathias Nyman X-Patchwork-Id: 267052 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 o9PEVWvI008596 for ; Mon, 25 Oct 2010 14:31:32 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755907Ab0JYObb (ORCPT ); Mon, 25 Oct 2010 10:31:31 -0400 Received: from smtp.nokia.com ([147.243.1.47]:52832 "EHLO mgw-sa01.nokia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753256Ab0JYOba (ORCPT ); Mon, 25 Oct 2010 10:31:30 -0400 Received: from nokia.com (localhost [127.0.0.1]) by mgw-sa01.nokia.com (Switch-3.4.3/Switch-3.4.3) with ESMTP id o9PEVTFr025356 for ; Mon, 25 Oct 2010 17:31:29 +0300 Received: from localhost.localdomain ([helruo-dhcp02199.ntc.nokia.com [172.21.21.99]]) by mgw-sa01.nokia.com with RELAY id o9PEV6Q2025150 ; Mon, 25 Oct 2010 17:31:07 +0300 From: Mathias Nyman To: linux-omap@vger.kernel.org Cc: Mathias Nyman Subject: [PATCH] omap: dma: Add read-back to DMA interrupt handler to avoid spurious interrupts Date: Mon, 25 Oct 2010 17:35:24 +0300 Message-Id: <1288017324-2181-1-git-send-email-mathias.nyman@nokia.com> X-Mailer: git-send-email 1.5.6.5 X-Nokia-AV: Clean 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]); Mon, 25 Oct 2010 14:31:32 +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) {