i2c: qup: advertise SMBus transfers using RECV_LEN
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Sat, 9 Jan 2021 12:43:11 +0000 (13:43 +0100)
committerWolfram Sang <wsa@kernel.org>
Fri, 22 Jan 2021 08:59:25 +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-qup.c

index 5a47915..61dc20f 100644 (file)
@@ -1603,7 +1603,7 @@ out:
 
 static u32 qup_i2c_func(struct i2c_adapter *adap)
 {
-       return I2C_FUNC_I2C | (I2C_FUNC_SMBUS_EMUL & ~I2C_FUNC_SMBUS_QUICK);
+       return I2C_FUNC_I2C | (I2C_FUNC_SMBUS_EMUL_ALL & ~I2C_FUNC_SMBUS_QUICK);
 }
 
 static const struct i2c_algorithm qup_i2c_algo = {