summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorNicolin Chen <nicoleotsuka@gmail.com>2016-09-08 04:24:28 +0300
committerVinod Koul <vinod.koul@intel.com>2016-09-09 14:40:54 +0300
commitc8a2c191f56dfd1bc132781ef47a46e0c6a4d18d (patch)
tree564e325c0d75a67bb38d0d6130065ec30805802c /drivers
parente9405ef08ca8d9e702f4a1b58b4fa992a7c9f137 (diff)
downloadlinux-c8a2c191f56dfd1bc132781ef47a46e0c6a4d18d.tar.xz
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 <nicoleotsuka@gmail.com> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/dma/dmatest.c2
1 files changed, 1 insertions, 1 deletions
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;