Messages in this thread | | | Date | Fri, 3 Feb 2023 17:37:43 +0100 | From | Wolfram Sang <> | Subject | Re: [PATCH V4 5/9] i2c: xiic: Add smbus_block_read functionality |
| |
On Thu, Feb 02, 2023 at 03:11:34PM +0530, Manikanta Guntupalli wrote: > From: Raviteja Narayanam <raviteja.narayanam@xilinx.com> > > smbus_block_read is added to xiic driver to read from few sensors > which support this command. Since the number of bytes to read is not > known prior to transfer, xiic standard mode is being used for low level > control of IP. > > Signed-off-by: Raviteja Narayanam <raviteja.narayanam@xilinx.com> > Signed-off-by: Manikanta Guntupalli <manikanta.guntupalli@amd.com> > Acked-by: Michal Simek <michal.simek@amd.com>
Applied to for-next, thanks!
> - return I2C_FUNC_I2C | I2C_FUNC_SMBUS_EMUL; > + return I2C_FUNC_I2C | I2C_FUNC_SMBUS_EMUL | I2C_FUNC_SMBUS_BLOCK_DATA;
Note: Since you implemented I2C_M_RECV_LEN anyhow, you get the emulated I2C_FUNC_SMBUS_BLOCK_PROC_CALL basically for free, so you could also use I2C_FUNC_SMBUS_EMUL_ALL here.
If you'd like this, please send an incremental patch.
[unhandled content-type:application/pgp-signature] | |