Skip to content

Commit

Permalink
ARM: S3C64XX: Clear DMA flags on channel request
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Charles Keepax authored and Kukjin Kim committed Apr 4, 2013
1 parent 8521420 commit f6281db
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions arch/arm/mach-s3c64xx/dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit f6281db

Please sign in to comment.