i2c: davinci: add I2C_FUNC_PROTOCOL_MANGLING to feature list
Subsystems (2)
PATCH 1/1 i2c: davinci: add I2C_FUNC_PROTOCOL_MANGLING to feature list
The driver do support I2C_M_IGNORE_NAK, so addI2C_FUNC_PROTOCOL_MANGLING to the feature list.
---
The driver do support I2C_M_IGNORE_NAK, so theI2C_FUNC_PROTOCOL_MANGLING bit should be set.
I2C_M_IGNORE_NAK is the only supported "mangling-feature" though, but other i2c bus drivers also seems to support only a subset of available mangling-features, so I guess this is ok.
--- drivers/i2c/busses/i2c-davinci.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/i2c/busses/i2c-davinci.c +2 -1
@@ -551,7 +551,8 @@ i2c_davinci_xfer(struct i2c_adapter *adap, struct i2c_msg msgs[], int num)static u32 i2c_davinci_func (struct i2c_adapter *adap) { -return I2C_FUNC_I2C |I2C_FUNC_SMBUS_EMUL ; +return I2C_FUNC_I2C |I2C_FUNC_SMBUS_EMUL | +I2C_FUNC_PROTOCOL_MANGLING ; }static void terminate_read (struct davinci_i2c_dev *dev)
---
base-commit: 1e26c5e28ca5821a824e90dd359556f5e9e7b89f
change-id: 20250326-i2c-5561bf853f8d
Best regards,
Signature · 1 line
Marcus Folkesson <[email protected]>
Looks good to me.
Quoted 4 lines · Marcus Folkesson
The driver do support
I2C_M_IGNORE_NAK, so addI2C_FUNC_PROTOCOL_MANGLINGto the feature list.Signed-off-by Marcus Folkesson <[email protected]>
Quoted 31 lines
---
The driver do supportI2C_M_IGNORE_NAK, so theI2C_FUNC_PROTOCOL_MANGLINGbit should be set.
I2C_M_IGNORE_NAKis the only supported "mangling-feature" though, but other i2c bus drivers also seems to support only a subset of available mangling-features, so I guess this is ok.--- drivers/i2c/busses/i2c-davinci.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)drivers/i2c/busses/i2c-davinci.c +2
-2@@ -551,7 +551,8 @@ i2c_davinci_xfer(struct i2c_adapter *adap, struct i2c_msg msgs[], int num)static u32 i2c_davinci_func (struct i2c_adapter *adap) { -return I2C_FUNC_I2C |I2C_FUNC_SMBUS_EMUL ; +return I2C_FUNC_I2C |I2C_FUNC_SMBUS_EMUL | +I2C_FUNC_PROTOCOL_MANGLING ; }static void terminate_read (struct davinci_i2c_dev *dev) ---base-commit:
1e26c5e28ca5821a824e90dd359556f5e9e7b89f
change-id: 20250326-i2c-5561bf853f8dBest regards,
Hello,
Quoted 5 lines · Marcus Folkesson
The driver do support
I2C_M_IGNORE_NAK, so addI2C_FUNC_PROTOCOL_MANGLINGto the feature list.Signed-off-by Marcus Folkesson <[email protected]>---
Is this patch picked up by any tree?
No confirmation nor showing up in -next makes me wonder.
Thanks,
Marcus Folkesson
Hi Marcus,
Quoted 4 lines · Marcus Folkesson
The driver do support
I2C_M_IGNORE_NAK, so addI2C_FUNC_PROTOCOL_MANGLINGto the feature list.Signed-off-by Marcus Folkesson <[email protected]>
merged to i2c/i2c-host.
Thanks,
Andi