dmaengine: Extend the dmaengine_alignment for 128 and 256 bytes
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Wed, 13 Jan 2021 11:49:21 +0000 (13:49 +0200)
committerVinod Koul <vkoul@kernel.org>
Wed, 13 Jan 2021 16:30:37 +0000 (22:00 +0530)
Some DMA device can benefit with higher order of alignment than the maximum
of 64 bytes currently defined.

Define 128 and 256 bytes alignment for these devices.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@gmail.com>
Tested-by: Kishon Vijay Abraham I <kishon@ti.com>
Link: https://lore.kernel.org/r/20210113114923.9231-2-peter.ujfalusi@gmail.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
include/linux/dmaengine.h

index 68130f5f599e1146e56b3f7fe4ef376443a8ca79..004736b6a9c8de50a51493e006568cff9426e1c4 100644 (file)
@@ -745,6 +745,8 @@ enum dmaengine_alignment {
        DMAENGINE_ALIGN_16_BYTES = 4,
        DMAENGINE_ALIGN_32_BYTES = 5,
        DMAENGINE_ALIGN_64_BYTES = 6,
+       DMAENGINE_ALIGN_128_BYTES = 7,
+       DMAENGINE_ALIGN_256_BYTES = 8,
 };
 
 /**