summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPrahlad V <prahlad.eee@gmail.com>2016-11-15 19:26:43 +0100
committerMark Brown <broonie@kernel.org>2016-11-15 19:37:01 +0100
commitd06a3507fe7cfd85a296d2c1fe367dd850e9595f (patch)
tree0abc449af66ee53036e364ce5fa8ec4a3404e744
parentLinux 4.9-rc1 (diff)
downloadlinux-d06a3507fe7cfd85a296d2c1fe367dd850e9595f.tar.xz
linux-d06a3507fe7cfd85a296d2c1fe367dd850e9595f.zip
spi: spi-ti-qspi: reinit of completion variable
completion variable should be reinitialized before reusing. Signed-off-by: Prahlad V <prahlad.eee@gmail.com> Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r--drivers/spi/spi-ti-qspi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/spi/spi-ti-qspi.c b/drivers/spi/spi-ti-qspi.c
index caeac66a3977..ec6fb09e2e17 100644
--- 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) {