From cdb582bbb859581a68d17b51691f40826f92a224 Mon Sep 17 00:00:00 2001 From: David Lin Date: Mon, 20 Mar 2017 10:40:20 -0700 Subject: i2c-msm-v2: allow i2c_adapter to retry on arbitration lost In case of error on lost arbitration, the host should at least attempt to retry in case if the bus error is transient (i.e., from signal interference or misbehaved devices). Use the default 2s timeout setting. Bug: 35439882 Change-Id: Id9bd5a5ea764405401588220a2d2bf0fd85111f7 Signed-off-by: David Lin --- include/linux/i2c/i2c-msm-v2.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/linux') diff --git a/include/linux/i2c/i2c-msm-v2.h b/include/linux/i2c/i2c-msm-v2.h index 26cd52644f8d..cf695beaa4a3 100644 --- a/include/linux/i2c/i2c-msm-v2.h +++ b/include/linux/i2c/i2c-msm-v2.h @@ -37,6 +37,7 @@ enum msm_i2_debug_level { #define MASK_IS_SET_BOOL(val, mask) (MASK_IS_SET(val, mask) ? 1 : 0) #define KHz(freq) (1000 * freq) #define I2C_MSM_CLK_FAST_PLUS_FREQ (1000000) +#define I2C_MSM_MAX_RETRIES 5 /* QUP Registers */ enum { -- cgit v1.2.3