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:
5ae90d8
)
spi: spi-davinci: Fix direction in dma_map_single()
author
Christian Eggers
<
[email protected]
>
Mon, 29 Jul 2013 18:54:09 +0000
(20:54 +0200)
committer
Mark Brown
<
[email protected]
>
Mon, 29 Jul 2013 19:27:54 +0000
(20:27 +0100)
Commit
048177ce3b3962852fd34a7e04938959271c7e70
(spi: spi-davinci:
convert to DMA engine API) introduced a regression: dma_map_single()
is called with direction DMA_FROM_DEVICE for rx and for tx.
Signed-off-by: Christian Eggers <
[email protected]
>
Acked-by: Matt Porter <
[email protected]
>
Signed-off-by: Mark Brown <
[email protected]
>
Cc:
[email protected]
# v3.7.x+
drivers/spi/spi-davinci.c
patch
|
blob
|
history
diff --git
a/drivers/spi/spi-davinci.c
b/drivers/spi/spi-davinci.c
index 222d3e37fc283b95dc5932570c1dec874cec78e2..707966bd56103181d31887b53cca01c1d9bd9776 100644
(file)
--- a/
drivers/spi/spi-davinci.c
+++ b/
drivers/spi/spi-davinci.c
@@
-609,7
+609,7
@@
static int davinci_spi_bufs(struct spi_device *spi, struct spi_transfer *t)
else
buf = (void *)t->tx_buf;
t->tx_dma = dma_map_single(&spi->dev, buf,
- t->len, DMA_
FROM
_DEVICE);
+ t->len, DMA_
TO
_DEVICE);
if (!t->tx_dma) {
ret = -EFAULT;
goto err_tx_map;