i2c: designware: retry transfer on transient failure
authorBaruch Siach <baruch@tkos.co.il>
Wed, 23 Dec 2015 16:43:24 +0000 (18:43 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Sun, 10 Jan 2016 08:24:56 +0000 (09:24 +0100)
commit8d22f309384cc410da91543f1eb30fe5daf91c3b
tree5da3140835580b043a10e9863e95fae19357bd48
parentf199b2605c25a0076cdd5c6a9e7eece77f95ce61
i2c: designware: retry transfer on transient failure

Set the i2c_adapter retries field to a sensible value. This allows the i2c core
to retry master_xfer() when it returns -EAGAIN. Currently the i2c-designware
driver returns -EAGAIN only on Tx arbitration failure (DW_IC_TX_ARB_LOST).

Reported-by: Rolland Chau <zourongrong@gmail.com>
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Acked-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-designware-core.c