Commit e39d40c6 authored by Gusakov Andrey's avatar Gusakov Andrey Committed by Kukjin Kim

ARM: S3C24XX: DMA resume regression fix

s3c2410_dma_suspend suspends channels from 0 to dma_channels.
s3c2410_dma_resume resumes channels in reverse order. So
pointer should be decremented instead of being incremented.
Signed-off-by: default avatarGusakov Andrey <dron0gus@gmail.com>
Reviewed-by: default avatarHeiko Stuebner <heiko@sntech.de>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: default avatarKukjin Kim <kgene.kim@samsung.com>
parent c1ba544f
...@@ -1249,7 +1249,7 @@ static void s3c2410_dma_resume(void) ...@@ -1249,7 +1249,7 @@ static void s3c2410_dma_resume(void)
struct s3c2410_dma_chan *cp = s3c2410_chans + dma_channels - 1; struct s3c2410_dma_chan *cp = s3c2410_chans + dma_channels - 1;
int channel; int channel;
for (channel = dma_channels - 1; channel >= 0; cp++, channel--) for (channel = dma_channels - 1; channel >= 0; cp--, channel--)
s3c2410_dma_resume_chan(cp); s3c2410_dma_resume_chan(cp);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment