Skip to content

Commit aca0141

Browse files
bence98wsakernel
authored andcommitted
i2c: Add I2C_AQ_NO_REP_START adapter quirk
This quirk signifies that the adapter cannot do a repeated START, it always issues a STOP condition after transfers. Suggested-by: Wolfram Sang <[email protected]> Signed-off-by: Bence Csókás <[email protected]> Signed-off-by: Wolfram Sang <[email protected]>
1 parent c126f7c commit aca0141

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

include/linux/i2c.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -687,6 +687,8 @@ struct i2c_adapter_quirks {
687687
#define I2C_AQ_NO_ZERO_LEN_READ BIT(5)
688688
#define I2C_AQ_NO_ZERO_LEN_WRITE BIT(6)
689689
#define I2C_AQ_NO_ZERO_LEN (I2C_AQ_NO_ZERO_LEN_READ | I2C_AQ_NO_ZERO_LEN_WRITE)
690+
/* adapter cannot do repeated START */
691+
#define I2C_AQ_NO_REP_START BIT(7)
690692

691693
/*
692694
* i2c_adapter is the structure used to identify a physical i2c bus along

0 commit comments

Comments
 (0)