提交 e39d40c6 编写于 作者: G Gusakov Andrey 提交者: 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: NGusakov Andrey <dron0gus@gmail.com>
Reviewed-by: NHeiko Stuebner <heiko@sntech.de>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: NKukjin Kim <kgene.kim@samsung.com>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册