Skip to content

Commit

Permalink
spi: spi-ti-qspi: reinit of completion variable
Browse files Browse the repository at this point in the history
completion variable should be reinitialized before reusing.

Signed-off-by: Prahlad V <prahlad.eee@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
  • Loading branch information
Prahlad V authored and Mark Brown committed Nov 15, 2016
1 parent 1001354 commit d06a350
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/spi/spi-ti-qspi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit d06a350

Please sign in to comment.