summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-s3c64xx
diff options
context:
space:
mode:
authorCharles Keepax <ckeepax@opensource.wolfsonmicro.com>2013-04-04 07:37:57 +0200
committerKukjin Kim <kgene.kim@samsung.com>2013-04-04 08:17:09 +0200
commitf6281dbe4a92fe7d6758853d8db5f53a67bc9709 (patch)
tree91c582d5eed00595f9d0ef7d26096ae12e080120 /arch/arm/mach-s3c64xx
parentARM: EXYNOS: Clear ENABLE_WAKEUP_SW bit when entering suspend (diff)
downloadlinux-f6281dbe4a92fe7d6758853d8db5f53a67bc9709.tar.xz
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);