aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/spi
diff options
context:
space:
mode:
authorMike Rapoport <mike@compulab.co.il>2009-04-06 22:00:57 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2009-04-07 11:31:07 -0400
commit7ad0ba91d47ff539fe114875bd0a319fba29c9b5 (patch)
treee56ae536c5e38c69de7c1803c637c2207d0e9b90 /drivers/spi
parentfd5e191e7610eb7ecb5e35b2045ceb6554bea15a (diff)
pxa2xx_spi: set spi_master.dma_alignment = 8
Signed-off-by: Mike Rapoport <mike@compulab.co.il> Cc: Bryan Wu <bryan.wu@analog.com> Cc: David Brownell <david-b@pacbell.net> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/spi')
-rw-r--r--drivers/spi/pxa2xx_spi.c2
1 files changed, 2 insertions, 0 deletions
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");
54#define RESET_DMA_CHANNEL (DCSR_NODESC | DMA_INT_MASK) 54#define RESET_DMA_CHANNEL (DCSR_NODESC | DMA_INT_MASK)
55#define IS_DMA_ALIGNED(x) ((((u32)(x)) & 0x07) == 0) 55#define IS_DMA_ALIGNED(x) ((((u32)(x)) & 0x07) == 0)
56#define MAX_DMA_LEN 8191 56#define MAX_DMA_LEN 8191
57#define DMA_ALIGNMENT 8
57 58
58/* 59/*
59 * for testing SSCR1 changes that require SSP restart, basically 60 * for testing SSCR1 changes that require SSP restart, basically
@@ -1498,6 +1499,7 @@ static int __init pxa2xx_spi_probe(struct platform_device *pdev)
1498 1499
1499 master->bus_num = pdev->id; 1500 master->bus_num = pdev->id;
1500 master->num_chipselect = platform_info->num_chipselect; 1501 master->num_chipselect = platform_info->num_chipselect;
1502 master->dma_alignment = DMA_ALIGNMENT;
1501 master->cleanup = cleanup; 1503 master->cleanup = cleanup;
1502 master->setup = setup; 1504 master->setup = setup;
1503 master->transfer = transfer; 1505 master->transfer = transfer;