From: Nicolin Chen Date: Thu, 8 Sep 2016 01:24:28 +0000 (-0700) Subject: dmaengine: dmatest: Apply copy_align to DMA_SG as well X-Git-Tag: v4.9-rc1~102^2~14^2~1 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=c8a2c191f56dfd1bc132781ef47a46e0c6a4d18d;p=karo-tx-linux.git dmaengine: dmatest: Apply copy_align to DMA_SG as well The DMA_SG is still a type of memory copy operation that should conform the hardware restriction. So this patch just applies the copy_align to DMA_SG as well. Signed-off-by: Nicolin Chen Signed-off-by: Vinod Koul --- diff --git a/drivers/dma/dmatest.c b/drivers/dma/dmatest.c index 738fbd1dd57a..53e972819ccd 100644 --- a/drivers/dma/dmatest.c +++ b/drivers/dma/dmatest.c @@ -505,7 +505,7 @@ static int dmatest_func(void *data) total_tests++; /* honor alignment restrictions */ - if (thread->type == DMA_MEMCPY) + if (thread->type == DMA_MEMCPY || thread->type == DMA_SG) align = dev->copy_align; else if (thread->type == DMA_XOR) align = dev->xor_align;