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

From
Jiri Kosina <hidden>
Date
2015-05-29 14:54:50
Also in
linux-i2c
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
Thread (1 message) 1 message, 1 author, last reply 2015-05-29
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help