Commit d06a3507 authored by Prahlad V's avatar Prahlad V Committed by Mark Brown

spi: spi-ti-qspi: reinit of completion variable

completion variable should be reinitialized before reusing.
Signed-off-by: default avatarPrahlad V <prahlad.eee@gmail.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 1001354c
...@@ -411,6 +411,7 @@ static int ti_qspi_dma_xfer(struct ti_qspi *qspi, dma_addr_t dma_dst, ...@@ -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 = ti_qspi_dma_callback;
tx->callback_param = qspi; tx->callback_param = qspi;
cookie = tx->tx_submit(tx); cookie = tx->tx_submit(tx);
reinit_completion(&qspi->transfer_complete);
ret = dma_submit_error(cookie); ret = dma_submit_error(cookie);
if (ret) { if (ret) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment