]> git.karo-electronics.de Git - karo-tx-linux.git/commit
i2c: octeon: thunderx: Limit register access retries
authorJan Glauber <jglauber@cavium.com>
Fri, 23 Sep 2016 09:40:39 +0000 (11:40 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Sat, 24 Sep 2016 09:22:24 +0000 (11:22 +0200)
commit70121f7f3725c82e8927a4e03ca1d50c98bbc6d2
tree29d0e13b40b0471d26047c270a78207748624ac7
parentfcbd4bddb314346a35295701f385b9627bb3a137
i2c: octeon: thunderx: Limit register access retries

Do not infinitely retry register readq and writeq operations
in order to not lock up the CPU in case the TWSI gets stuck.

Return -ETIMEDOUT in case of a failed data read. For all other
cases just return so subsequent operations will fail.

Signed-off-by: Jan Glauber <jglauber@cavium.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-octeon-core.c
drivers/i2c/busses/i2c-octeon-core.h