diff options
author | Bence Csókás <bence98@sch.bme.hu> | 2021-03-31 19:19:20 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-05-19 10:08:22 +0200 |
commit | fadf3660a24f8190c5235175f5529c929132c63a (patch) | |
tree | 2c4e84f1516051c98422bdc85b25d4ca5cf72ba5 /include | |
parent | ASoC: Intel: bytcr_rt5640: Add quirk for the Chuwi Hi8 tablet (diff) | |
download | wireguard-linux-fadf3660a24f8190c5235175f5529c929132c63a.tar.xz wireguard-linux-fadf3660a24f8190c5235175f5529c929132c63a.zip |
i2c: Add I2C_AQ_NO_REP_START adapter quirk
[ Upstream commit aca01415e076aa96cca0f801f4420ee5c10c660d ]
This quirk signifies that the adapter cannot do a repeated
START, it always issues a STOP condition after transfers.
Suggested-by: Wolfram Sang <wsa@kernel.org>
Signed-off-by: Bence Csókás <bence98@sch.bme.hu>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/i2c.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/i2c.h b/include/linux/i2c.h index 1361637c369d..af2b799d7a66 100644 --- a/include/linux/i2c.h +++ b/include/linux/i2c.h @@ -677,6 +677,8 @@ struct i2c_adapter_quirks { #define I2C_AQ_NO_ZERO_LEN_READ BIT(5) #define I2C_AQ_NO_ZERO_LEN_WRITE BIT(6) #define I2C_AQ_NO_ZERO_LEN (I2C_AQ_NO_ZERO_LEN_READ | I2C_AQ_NO_ZERO_LEN_WRITE) +/* adapter cannot do repeated START */ +#define I2C_AQ_NO_REP_START BIT(7) /* * i2c_adapter is the structure used to identify a physical i2c bus along |