Skip to content
Unverified Commit 39cefd85 authored by Nam Cao's avatar Nam Cao Committed by Mark Brown
Browse files

spi: introduce SPI_TRANS_FAIL_IO for error reporting



The default message transfer implementation - spi_transfer_one_message -
invokes the specific device driver's transfer_one(), then waits for
completion. However, there is no mechanism for the device driver to
report failure in the middle of the transfer.

Introduce SPI_TRANS_FAIL_IO for drivers to report transfer failure.

Signed-off-by: default avatarNam Cao <namcao@linutronix.de>
Acked-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/4b420dac528e60f122adde16851da88e4798c1ea.1701274975.git.namcao@linutronix.de


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 2cc14f52
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment