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:
97bf6af
)
spi: img-spfi: Enable controller before starting TX DMA
author
Andrew Bresticker
<abrestic@chromium.org>
Tue, 16 Dec 2014 21:05:44 +0000
(13:05 -0800)
committer
Mark Brown
<broonie@kernel.org>
Mon, 22 Dec 2014 17:52:07 +0000
(17:52 +0000)
It is recommended that the SPFI controller be enabled (i.e. setting
SPFI_EN in SPFI_CONTROL) before TX DMA begins.
Signed-off-by: Andrew Bresticker <abrestic@chromium.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-img-spfi.c
patch
|
blob
|
history
diff --git
a/drivers/spi/spi-img-spfi.c
b/drivers/spi/spi-img-spfi.c
index b410499cddca9f391a0832ff6e6d6189b7ec1c82..cd14556852bf3e669de1ee27e80f9ce61f0f54b0 100644
(file)
--- a/
drivers/spi/spi-img-spfi.c
+++ b/
drivers/spi/spi-img-spfi.c
@@
-390,14
+390,14
@@
static int img_spfi_start_dma(struct spi_master *master,
dma_async_issue_pending(spfi->rx_ch);
}
+ spfi_start(spfi);
+
if (xfer->tx_buf) {
spfi->tx_dma_busy = true;
dmaengine_submit(txdesc);
dma_async_issue_pending(spfi->tx_ch);
}
- spfi_start(spfi);
-
return 1;
stop_dma: