[glsdk/meta-ti-glsdk.git] / recipes-kernel / linux / linux-ti33x-psp-3.2 / 3.2.10 / 0023-ARM-S3C24XX-DMA-resume-regression-fix.patch
1 From 22f75673eb447eb62c1890393fe82728d86aad06 Mon Sep 17 00:00:00 2001
2 From: Gusakov Andrey <dron0gus@gmail.com>
3 Date: Sat, 3 Mar 2012 07:32:36 +0900
4 Subject: [PATCH 23/95] ARM: S3C24XX: DMA resume regression fix
6 commit e39d40c65dfd8390b50c03482ae9e289b8a8f351 upstream.
8 s3c2410_dma_suspend suspends channels from 0 to dma_channels.
9 s3c2410_dma_resume resumes channels in reverse order. So
10 pointer should be decremented instead of being incremented.
12 Signed-off-by: Gusakov Andrey <dron0gus@gmail.com>
13 Reviewed-by: Heiko Stuebner <heiko@sntech.de>
14 Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
15 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
16 ---
17 arch/arm/plat-s3c24xx/dma.c | 2 +-
18 1 file changed, 1 insertion(+), 1 deletion(-)
20 diff --git a/arch/arm/plat-s3c24xx/dma.c b/arch/arm/plat-s3c24xx/dma.c
21 index 53754bc..8a90b6a 100644
22 --- a/arch/arm/plat-s3c24xx/dma.c
23 +++ b/arch/arm/plat-s3c24xx/dma.c
24 @@ -1249,7 +1249,7 @@ static void s3c2410_dma_resume(void)
25 struct s3c2410_dma_chan *cp = s3c2410_chans + dma_channels - 1;
26 int channel;
28 - for (channel = dma_channels - 1; channel >= 0; cp++, channel--)
29 + for (channel = dma_channels - 1; channel >= 0; cp--, channel--)
30 s3c2410_dma_resume_chan(cp);
31 }
33 --
34 1.7.9.4