From patchwork Fri Apr 23 23:11:12 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tony Lindgren X-Patchwork-Id: 94784 X-Patchwork-Delegate: tony@atomide.com Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o3NNBGWr021106 for ; Fri, 23 Apr 2010 23:11:16 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754877Ab0DWXLP (ORCPT ); Fri, 23 Apr 2010 19:11:15 -0400 Received: from mho-01-ewr.mailhop.org ([204.13.248.71]:61367 "EHLO mho-01-ewr.mailhop.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754477Ab0DWXLN (ORCPT ); Fri, 23 Apr 2010 19:11:13 -0400 Received: from c-67-160-239-110.hsd1.ca.comcast.net ([67.160.239.110] helo=baageli.muru.com) by mho-01-ewr.mailhop.org with esmtpa (Exim 4.68) (envelope-from ) id 1O5S1g-00011e-DJ; Fri, 23 Apr 2010 23:11:12 +0000 X-Mail-Handler: MailHop Outbound by DynDNS X-Originating-IP: 67.160.239.110 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/Ipwl+zDFNgeHzuXgBhtyw Subject: [PATCH 04/28] omap: DMA: Init CDAC to zero To: linux-arm-kernel@lists.infradead.org From: Tony Lindgren Cc: Kevin Hilman , Govindraj R , linux-omap@vger.kernel.org, Santosh Shilimkar , Manjunatha GK Date: Fri, 23 Apr 2010 16:11:12 -0700 Message-ID: <20100423231112.31953.32544.stgit@baageli.muru.com> In-Reply-To: <20100423230829.31953.17334.stgit@baageli.muru.com> References: <20100423230829.31953.17334.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 (demeter.kernel.org [140.211.167.41]); Fri, 23 Apr 2010 23:11:18 +0000 (UTC) diff --git a/arch/arm/plat-omap/dma.c b/arch/arm/plat-omap/dma.c index 2ab224c..f6c9bdc 100644 --- a/arch/arm/plat-omap/dma.c +++ b/arch/arm/plat-omap/dma.c @@ -936,6 +936,15 @@ void omap_start_dma(int lch) { u32 l; + /* + * The CPC/CDAC register needs to be initialized to zero + * before starting dma transfer. + */ + if (cpu_is_omap15xx()) + dma_write(0, CPC(lch)); + else + dma_write(0, CDAC(lch)); + if (!omap_dma_in_1510_mode() && dma_chan[lch].next_lch != -1) { int next_lch, cur_lch; char dma_chan_link_map[OMAP_DMA4_LOGICAL_DMA_CH_COUNT];