OSDN Git Service

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)
commit7aef2b646b24247d880a353e09d4e10614a61cd6
tree2044cf9a54f92ee9d7e2c51e64982d405f0ff0bf
parent2e236bafab11b063069a8b12793f1986862963b0
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