i2c: s3c2410: advertise SMBus transfers using RECV_LEN
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Sat, 9 Jan 2021 12:43:12 +0000 (13:43 +0100)
committerWolfram Sang <wsa@kernel.org>
Fri, 22 Jan 2021 08:59:49 +0000 (09:59 +0100)
This driver implements I2C_M_RECV_LEN, so it can advertise the SMBus
transfers needing it. This also enables client devices to check for the
RECV_LEN capability.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
drivers/i2c/busses/i2c-s3c2410.c

index 3eafe0eb3e4ccfdee1dd37db3c1950977a50762e..62a903fbe9121f2cef24f9eeddfccf9428e9704b 100644 (file)
@@ -781,7 +781,7 @@ static int s3c24xx_i2c_xfer(struct i2c_adapter *adap,
 /* declare our i2c functionality */
 static u32 s3c24xx_i2c_func(struct i2c_adapter *adap)
 {
-       return I2C_FUNC_I2C | I2C_FUNC_SMBUS_EMUL | I2C_FUNC_NOSTART |
+       return I2C_FUNC_I2C | I2C_FUNC_SMBUS_EMUL_ALL | I2C_FUNC_NOSTART |
                I2C_FUNC_PROTOCOL_MANGLING;
 }