瀏覽代碼

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>
Prahlad V 8 年之前
父節點
當前提交
d06a3507fe
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      drivers/spi/spi-ti-qspi.c

+ 1 - 0
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) {