summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-s3c64xx
diff options
context:
space:
mode:
authorCharles Keepax <ckeepax@opensource.wolfsonmicro.com>2013-04-04 14:37:57 +0900
committerKukjin Kim <kgene.kim@samsung.com>2013-04-04 15:17:09 +0900
commitf6281dbe4a92fe7d6758853d8db5f53a67bc9709 (patch)
tree91c582d5eed00595f9d0ef7d26096ae12e080120 /arch/arm/mach-s3c64xx
parent8521420375d0e6824a76fda24677f428c1d3f598 (diff)
downloadtalos-op-linux-f6281dbe4a92fe7d6758853d8db5f53a67bc9709.tar.gz
talos-op-linux-f6281dbe4a92fe7d6758853d8db5f53a67bc9709.zip
ARM: S3C64XX: Clear DMA flags on channel request
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 <ckeepax@opensource.wolfsonmicro.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
Diffstat (limited to 'arch/arm/mach-s3c64xx')
-rw-r--r--arch/arm/mach-s3c64xx/dma.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/mach-s3c64xx/dma.c b/arch/arm/mach-s3c64xx/dma.c
index 6af1aa1ef213..759846c28d12 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);
OpenPOWER on IntegriCloud