14.02.2022 07:49, Akhil R пишет: >> It's unclear to me what's the point of emulating >> I2C_FUNC_SMBUS_READ_BLOCK_DATA within the driver if you could use >> i2c_smbus_read_i2c_block_data(). > We are looking to support I2C_M_RECV_LEN where the length is read from the > first byte of data. I see that i2c_smbus_read_i2c_block_data() requires the length > to be passed from the client driver. > > BTW, I2C_FUNC_SMBUS_WRITE_BLOCK_DATA is also expected to be supported. > It is included in I2C_FUNC_SMBUS_EMUL. I suppose, it doesn't require any additional > change in the driver. The client driver should populate the first byte as the length > of data to be transferred. Please support both read and write.