diff options
author | Lubomir Rintel <lkundrak@v3.sk> | 2018-11-13 13:22:24 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2018-11-13 21:01:23 +0300 |
commit | 810923f3bf06c11022b7bb370dd3130a956a222e (patch) | |
tree | 103a361a9aefe049a5c3c8bbdadf2d6dbe6407eb /lib/bcd.c | |
parent | aa66478aa538f839a96c836bba0bbc12ef2666f0 (diff) | |
download | linux-810923f3bf06c11022b7bb370dd3130a956a222e.tar.xz |
spi: Deal with slaves that return from transfer_one() unfinished
Some drivers, such as spi-pxa2xx return from the transfer_one callback
immediately, idicating that the transfer will be finished asynchronously.
Normally, spi_transfer_one_message() synchronously waits for the
transfer to finish with wait_for_completion_timeout(). For slaves, we
don't want the transaction to time out as it can complete in a long time
in future. Use wait_for_completion_interruptible() instead.
Signed-off-by: Lubomir Rintel <lkundrak@v3.sk>
Acked-by: Pavel Machek <pavel@ucw.cz>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'lib/bcd.c')
0 files changed, 0 insertions, 0 deletions