Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c8a2c191 authored by Nicolin Chen's avatar Nicolin Chen Committed by Vinod Koul
Browse files

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: default avatarNicolin Chen <nicoleotsuka@gmail.com>
Signed-off-by: default avatarVinod Koul <vinod.koul@intel.com>
parent e9405ef0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;