Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge tag 'i2c-for-6.10-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux

Pull i2c fixes from Wolfram Sang:
"Two fixes to correctly report i2c functionality, ensuring that
I2C_FUNC_SLAVE is reported when a device operates solely as a slave
interface"

* tag 'i2c-for-6.10-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux:
i2c: designware: Fix the functionality flags of the slave-only interface
i2c: at91: Fix the functionality flags of the slave-only interface

+2 -3
+1 -2
drivers/i2c/busses/i2c-at91-slave.c
··· 106 106 107 107 static u32 at91_twi_func(struct i2c_adapter *adapter) 108 108 { 109 - return I2C_FUNC_SLAVE | I2C_FUNC_I2C | I2C_FUNC_SMBUS_EMUL 110 - | I2C_FUNC_SMBUS_READ_BLOCK_DATA; 109 + return I2C_FUNC_SLAVE; 111 110 } 112 111 113 112 static const struct i2c_algorithm at91_twi_algorithm_slave = {
+1 -1
drivers/i2c/busses/i2c-designware-slave.c
··· 220 220 221 221 void i2c_dw_configure_slave(struct dw_i2c_dev *dev) 222 222 { 223 - dev->functionality = I2C_FUNC_SLAVE | DW_IC_DEFAULT_FUNCTIONALITY; 223 + dev->functionality = I2C_FUNC_SLAVE; 224 224 225 225 dev->slave_cfg = DW_IC_CON_RX_FIFO_FULL_HLD_CTRL | 226 226 DW_IC_CON_RESTART_EN | DW_IC_CON_STOP_DET_IFADDRESSED;