ARM: S3C24XX DMA resume regression fix
Subsystems (3)
A message that is not in the archive (sent off-list or not yet received): 077201ccf767c6d1ec05475c40$%[email protected]
PATCH v3 1/1 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.
--- arch/arm/plat-s3c24xx/dma.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
arch/arm/plat-s3c24xx/dma.c +1 -1
@@ -1249,7 +1249,7 @@ static void s3c2410_dma_resume(void)struct s3c2410_dma_chan *cp = s3c2410_chans + dma_channels -1 ;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); }
Signature · 1 line
1.7.0.4
Kukjin Kim
AppliedPATCH v3 1/1 ARM: S3C24XX DMA resume regression fix
Quoted 15 lines · Gusakov Andrey
s3c2410_dma_suspendsuspends channels from 0 todma_channels.s3c2410_dma_resumeresumes channels in reverse order. So pointer should be decremented instead of being incremented.Signed-off-by Gusakov Andrey<[email protected]>Reviewed-by Heiko Stuebner<[email protected]>--- arch/arm/plat-s3c24xx/dma.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)arch/arm/plat-s3c24xx/dma.c +0
-0
arch/arm/plat-s3c24xx/dma.c static void s3c2410_dma_resume(void) · line 1255
Quoted 8 lines
arch/arm/plat-s3c24xx/dma.c +1
-1@@ -1249,7 +1249,7 @@ static void s3c2410_dma_resume(void)struct s3c2410_dma_chan *cp = s3c2410_chans + dma_channels -1 ;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); }
Applied, thanks.
Best regards,
Kgene.
--
Kukjin Kim <[email protected]>, Senior Engineer, SW Solution Development Team, Samsung Electronics Co., Ltd.