]> git.baikalelectronics.ru Git - kernel.git/commit
spi: pl022: add a message state STATE_TIMEOUT for timeout transfer
authorJiwei Sun <jiwei.sun@windriver.com>
Fri, 18 Jan 2019 03:32:29 +0000 (11:32 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 28 Jan 2019 18:23:04 +0000 (18:23 +0000)
commite2bf248b6f64e4920a7d93025939478a4b1a42a0
tree2044cf9a54f92ee9d7e2c51e64982d405f0ff0bf
parent927f4990db185e8ae3cc79428334a99c6c479b08
spi: pl022: add a message state STATE_TIMEOUT for timeout transfer

When transfer timeout, give -EAGAIN to the message's status, and it can
make the spi device driver choose repeated transimation or not. And if
transfer timeout, output some useful information for tracing the issue.

Signed-off-by: Jiwei Sun <jiwei.sun@windriver.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-pl022.c