# Re: \[PATCH v1\] HID: support multiple and large i2c transfers in hid-cp2112

- From: Jiri Kosina \<hidden\>
- Date: 2015-05-29 14:54:50 
- List: linux-input
- Page: https://ratatoskr.run/linux-input/2015/05/8926188
- Thread: https://ratatoskr.run/linux-i2c/2015/05/8926188/t.md

```text
On Thu, 23 Apr 2015, Ellen Wang wrote:

> cp2112_i2c_xfer() only supports a single i2c_msg and only
> reads up to 61 bytes.  More than one message at a time
> and longers reads just return errors.
> 
> This is a serious limitation.  For example, the at24 eeprom driver
> generates paired write and read messages (for eeprom address and data).
> And the reads can be quite large.  The fix consists of a loop
> to go through all the messages, and a loop around cp2112_read()
> to pick up all the returned data.  For extra credit, it now also
> supports write-read pairs and implements them as
> CP2112_DATA_WRITE_READ_REQUEST.
> 
> Signed-off-by: Ellen Wang <redacted>

David, could you please provide your Reviewed-by: / Acked-by: for this 
patch?

Thanks,

-- 
Jiri Kosina
SUSE Labs
```
