From patchwork Thu Mar 28 11:22:25 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 2356061 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id C08763FDDA for ; Thu, 28 Mar 2013 11:22:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752818Ab3C1LWd (ORCPT ); Thu, 28 Mar 2013 07:22:33 -0400 Received: from opensource.wolfsonmicro.com ([80.75.67.52]:50316 "EHLO opensource.wolfsonmicro.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752588Ab3C1LWc (ORCPT ); Thu, 28 Mar 2013 07:22:32 -0400 Received: from finisterre.wolfsonmicro.main (cpc2-sgyl4-0-0-cust177.18-2.cable.virginmedia.com [82.42.102.178]) by opensource.wolfsonmicro.com (Postfix) with ESMTPSA id F26C111017B; Thu, 28 Mar 2013 11:22:29 +0000 (GMT) Received: from broonie by finisterre.wolfsonmicro.main with local (Exim 4.80) (envelope-from ) id 1ULAua-0001Jd-On; Thu, 28 Mar 2013 11:22:28 +0000 From: Mark Brown To: Kukjin Kim Cc: linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, Charles Keepax , Mark Brown Subject: [PATCH 1/2] ARM: S3C64XX: Clear DMA flags on channel request Date: Thu, 28 Mar 2013 11:22:25 +0000 Message-Id: <1364469746-5026-1-git-send-email-broonie@opensource.wolfsonmicro.com> X-Mailer: git-send-email 1.7.10.4 Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org From: Charles Keepax This patch clears the DMA flags when a DMA channel is requested. This is necessary because otherwise the channel may inherit incompatible settings from its last usage. Signed-off-by: Charles Keepax Signed-off-by: Mark Brown --- arch/arm/mach-s3c64xx/dma.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-s3c64xx/dma.c b/arch/arm/mach-s3c64xx/dma.c index 6af1aa1..759846c 100644 --- a/arch/arm/mach-s3c64xx/dma.c +++ b/arch/arm/mach-s3c64xx/dma.c @@ -509,6 +509,7 @@ int s3c2410_dma_request(enum dma_ch channel, chan->client = client; chan->in_use = 1; chan->peripheral = channel; + chan->flags = 0; local_irq_restore(flags);