Skip to content

Commit d6d5645

Browse files
jdelvareAndi Shyti
authored andcommitted
i2c: at91: Fix the functionality flags of the slave-only interface
When an I2C adapter acts only as a slave, it should not claim to support I2C master capabilities. Fixes: 9d3ca54 ("i2c: at91: added slave mode support") Signed-off-by: Jean Delvare <[email protected]> Cc: Juergen Fitschen <[email protected]> Cc: Ludovic Desroches <[email protected]> Cc: Codrin Ciubotariu <[email protected]> Cc: Andi Shyti <[email protected]> Cc: Nicolas Ferre <[email protected]> Cc: Alexandre Belloni <[email protected]> Cc: Claudiu Beznea <[email protected]> Signed-off-by: Andi Shyti <[email protected]>
1 parent 83a7eef commit d6d5645

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/i2c/busses/i2c-at91-slave.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,7 @@ static int at91_unreg_slave(struct i2c_client *slave)
106106

107107
static u32 at91_twi_func(struct i2c_adapter *adapter)
108108
{
109-
return I2C_FUNC_SLAVE | I2C_FUNC_I2C | I2C_FUNC_SMBUS_EMUL
110-
| I2C_FUNC_SMBUS_READ_BLOCK_DATA;
109+
return I2C_FUNC_SLAVE;
111110
}
112111

113112
static const struct i2c_algorithm at91_twi_algorithm_slave = {

0 commit comments

Comments
 (0)