projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1001354
)
spi: spi-ti-qspi: reinit of completion variable
author
Prahlad V
<prahlad.eee@gmail.com>
Tue, 15 Nov 2016 18:26:43 +0000
(23:56 +0530)
committer
Mark Brown
<broonie@kernel.org>
Tue, 15 Nov 2016 18:37:01 +0000
(18:37 +0000)
completion variable should be reinitialized before reusing.
Signed-off-by: Prahlad V <prahlad.eee@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-ti-qspi.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/spi/spi-ti-qspi.c
b/drivers/spi/spi-ti-qspi.c
index caeac66a39777465ac1c9a62cf2b74a99dfb2e47..ec6fb09e2e1711f7adfbe079559a89f1a9cd343d 100644
(file)
--- a/
drivers/spi/spi-ti-qspi.c
+++ b/
drivers/spi/spi-ti-qspi.c
@@
-411,6
+411,7
@@
static int ti_qspi_dma_xfer(struct ti_qspi *qspi, dma_addr_t dma_dst,
tx->callback = ti_qspi_dma_callback;
tx->callback_param = qspi;
cookie = tx->tx_submit(tx);
+ reinit_completion(&qspi->transfer_complete);
ret = dma_submit_error(cookie);
if (ret) {