mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] spi: spi-ti-qspi: reinit of completion variable
@ 2016-11-15 18:26 Prahlad V
  2016-11-15 18:53 ` Applied "spi: spi-ti-qspi: reinit of completion variable" to the spi tree Mark Brown
  2016-11-22  7:24 ` [PATCH] spi: spi-ti-qspi: reinit of completion variable prahlad venkata
  0 siblings, 2 replies; 4+ messages in thread
From: Prahlad V @ 2016-11-15 18:26 UTC (permalink / raw)
  To: broonie; +Cc: linux-spi, linux-kernel, vigneshr, Prahlad V

completion variable should be reinitialized before reusing.

Signed-off-by: Prahlad V <prahlad.eee@gmail.com>
---
 drivers/spi/spi-ti-qspi.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/spi/spi-ti-qspi.c b/drivers/spi/spi-ti-qspi.c
index caeac66..ec6fb09 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) {
-- 
2.9.2.729.ga42d7b6

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-11-22 12:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-11-15 18:26 [PATCH] spi: spi-ti-qspi: reinit of completion variable Prahlad V
2016-11-15 18:53 ` Applied "spi: spi-ti-qspi: reinit of completion variable" to the spi tree Mark Brown
2016-11-22  7:24 ` [PATCH] spi: spi-ti-qspi: reinit of completion variable prahlad venkata
2016-11-22 12:27   ` Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®