From: Mike Rapoport Date: Tue, 7 Apr 2009 02:00:57 +0000 (-0700) Subject: pxa2xx_spi: set spi_master.dma_alignment = 8 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7ad0ba91d47ff539fe114875bd0a319fba29c9b5;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git pxa2xx_spi: set spi_master.dma_alignment = 8 Signed-off-by: Mike Rapoport Cc: Bryan Wu Cc: David Brownell Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/spi/pxa2xx_spi.c b/drivers/spi/pxa2xx_spi.c index 70ff0072cb8a..c1688c71f052 100644 --- a/drivers/spi/pxa2xx_spi.c +++ b/drivers/spi/pxa2xx_spi.c @@ -54,6 +54,7 @@ MODULE_ALIAS("platform:pxa2xx-spi"); #define RESET_DMA_CHANNEL (DCSR_NODESC | DMA_INT_MASK) #define IS_DMA_ALIGNED(x) ((((u32)(x)) & 0x07) == 0) #define MAX_DMA_LEN 8191 +#define DMA_ALIGNMENT 8 /* * for testing SSCR1 changes that require SSP restart, basically @@ -1498,6 +1499,7 @@ static int __init pxa2xx_spi_probe(struct platform_device *pdev) master->bus_num = pdev->id; master->num_chipselect = platform_info->num_chipselect; + master->dma_alignment = DMA_ALIGNMENT; master->cleanup = cleanup; master->setup = setup; master->transfer = transfer;