summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorDavid Lin <dtwlin@google.com>2017-03-20 10:40:20 -0700
committerMichael Bestas <mkbestas@lineageos.org>2019-12-23 23:43:30 +0200
commitcdb582bbb859581a68d17b51691f40826f92a224 (patch)
treeac990ce7ec56d9c9613c8900ceef038fcfb33fb1 /include/linux
parent9cf70912eeff4bd5294e6aa4fe9bccf59db5d103 (diff)
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 <dtwlin@google.com>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/i2c/i2c-msm-v2.h1
1 files changed, 1 insertions, 0 deletions
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 {