i2c: rcar: report slave capabilities to users
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Thu, 14 May 2015 12:40:03 +0000 (14:40 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Sun, 31 May 2015 23:07:14 +0000 (08:07 +0900)
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Acked-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-rcar.c

index 06f34d1c5121e4fd44f73c85cc2c116da29c69df..9eef46254369b3da58831a50af0b65f93f17cf5e 100644 (file)
@@ -604,7 +604,8 @@ static int rcar_unreg_slave(struct i2c_client *slave)
 static u32 rcar_i2c_func(struct i2c_adapter *adap)
 {
        /* This HW can't do SMBUS_QUICK and NOSTART */
-       return I2C_FUNC_I2C | (I2C_FUNC_SMBUS_EMUL & ~I2C_FUNC_SMBUS_QUICK);
+       return I2C_FUNC_I2C | I2C_FUNC_SLAVE |
+               (I2C_FUNC_SMBUS_EMUL & ~I2C_FUNC_SMBUS_QUICK);
 }
 
 static const struct i2c_algorithm rcar_i2c_algo = {