Skip to contentSkip to conversation

dmaengine: dmatest: Apply copy_align to DMA_SG as well

PATCH Applied Nicolin Chen 2 participants 2 messages Sep 8, 2016 – Sep 9, 2016 dmaengine

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 drivers/dma/dmatest.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/dma/dmatest.c +1 -1
index 738fbd1..53e9728 100644
@@ -503,11 +503,11 @@ static int dmatest_func(void *data)
 		struct scatterlist rx_sg[src_cnt];
 
 		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;
 		else if (thread->type == DMA_PQ)
 			align = dev->pq_align;
Signature · 1 line
2.1.4
Applied
#1 lore raw
Quoted 3 lines · Nicolin Chen

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.

Applied, thanks

Signature · 1 line
~Vinod