Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f6281dbe authored by Charles Keepax's avatar Charles Keepax Committed by Kukjin Kim
Browse files

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: default avatarCharles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: default avatarKukjin Kim <kgene.kim@samsung.com>
parent 85214203
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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);