Commit 31d4c1bd authored by David Jander's avatar David Jander Committed by Mark Brown
parent 95c8222f
......@@ -1636,13 +1636,13 @@ static int __spi_pump_transfer_message(struct spi_controller *ctlr,
dev_err(&ctlr->dev,
"failed to transfer one message from queue\n");
return ret;
} else {
WRITE_ONCE(ctlr->cur_msg_need_completion, true);
smp_mb(); /* see spi_finalize_current_message()... */
if (READ_ONCE(ctlr->cur_msg_incomplete))
wait_for_completion(&ctlr->cur_msg_completion);
}
WRITE_ONCE(ctlr->cur_msg_need_completion, true);
smp_mb(); /* See spi_finalize_current_message()... */
if (READ_ONCE(ctlr->cur_msg_incomplete))
wait_for_completion(&ctlr->cur_msg_completion);
return 0;
}
......
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