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:
7ad0ba9
)
spi_imx: set spi_master.dma_alignment = 4
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/spi_imx.c
patch
|
blob
|
history
diff --git
a/drivers/spi/spi_imx.c
b/drivers/spi/spi_imx.c
index 014af69fc1bbba62ac386a1f147c7e816af14a0b..0671aeef579221bf17c21b522a7905be253ca8a6 100644
(file)
--- a/
drivers/spi/spi_imx.c
+++ b/
drivers/spi/spi_imx.c
@@
-186,6
+186,7
@@
#define QUEUE_STOPPED (1)
#define IS_DMA_ALIGNED(x) (((u32)(x) & 0x03) == 0)
+#define DMA_ALIGNMENT 4
/*-------------------------------------------------------------------------*/
@@
-1482,6
+1483,7
@@
static int __init spi_imx_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;