]> 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)
commitc260c1143af2ef51701ab291ee7aea94104cc3ae
tree2044cf9a54f92ee9d7e2c51e64982d405f0ff0bf
parentc9bbbb8675d11b1d808739961b5f20b64be3638f
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