i2c: octeon: Fix high-level controller status check
authorJan Glauber <jglauber@cavium.com>
Wed, 21 Sep 2016 06:51:04 +0000 (08:51 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Wed, 21 Sep 2016 21:04:42 +0000 (23:04 +0200)
commit38caa925ee67d2359f45a4a9cd1afa2e23a9eece
tree830aa97b646f82ec4e519dfa194625abf572571f
parentde919ff6a0060510b099405d9b8f9413aba9ae14
i2c: octeon: Fix high-level controller status check

In case the high-level controller (HLC) is used the status code is
reported at a different location. Check that location after HLC
write operations if the ready bit is not set and return an appropriate
error code instead of always returning -EAGAIN.

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