projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fd5e191
)
pxa2xx_spi: set spi_master.dma_alignment = 8
author
Mike Rapoport
<
[email protected]
>
Tue, 7 Apr 2009 02:00:57 +0000
(19:00 -0700)
committer
Linus Torvalds
<
[email protected]
>
Tue, 7 Apr 2009 15:31:07 +0000
(08:31 -0700)
Signed-off-by: Mike Rapoport <
[email protected]
>
Cc: Bryan Wu <
[email protected]
>
Cc: David Brownell <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
drivers/spi/pxa2xx_spi.c
patch
|
blob
|
history
diff --git
a/drivers/spi/pxa2xx_spi.c
b/drivers/spi/pxa2xx_spi.c
index 70ff0072cb8a236cfbbb9226c0105e4a94325613..c1688c71f052e252acdad47df85bae6f4fe5282a 100644
(file)
--- 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;