mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 10:49:33 +00:00
i2c: Add I2C_AQ_NO_REP_START adapter quirk
[ Upstream commit aca01415e0
]
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>
This commit is contained in:
parent
c6d2f8ffb1
commit
2c098ad786
1 changed files with 2 additions and 0 deletions
|
@ -687,6 +687,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
|
||||
|
|
Loading…
Reference in a new issue