]> Pileus Git - ~andy/linux/commitdiff
ARM: S3C64XX: Clear DMA flags on channel request
authorCharles Keepax <ckeepax@opensource.wolfsonmicro.com>
Thu, 4 Apr 2013 05:37:57 +0000 (14:37 +0900)
committerKukjin Kim <kgene.kim@samsung.com>
Thu, 4 Apr 2013 06:17:09 +0000 (15:17 +0900)
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>
arch/arm/mach-s3c64xx/dma.c

index 6af1aa1ef213293267063c4a20afa07b1a486b4b..759846c28d1296990bea0f1817ae782f46e042af 100644 (file)
@@ -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);