diff options
author | Ellen Wang <ellen@cumulusnetworks.com> | 2015-07-09 21:55:06 -0700 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.com> | 2015-07-10 11:18:45 +0200 |
commit | 44eda784a2229d25e2724ef1734fe67453716231 (patch) | |
tree | f9790205b23f4bc5ec1909159b0b4316c77ef437 /drivers/hid/hid-kye.c | |
parent | 5ddfb12e90c73cf86881345be422e09c367f6981 (diff) |
HID: cp2112: support i2c write-read transfers in hid-cp2112
cp2112_i2c_xfer() only supports a single i2c_msg. More than
one message at a time just returns EIO. This breaks certain
important cases. For example, the at24 eeprom driver generates
paired write and read messages (for eeprom address and data).
Since the device doesn't support i2c repeated starts in general,
but does support a single write-repeated-start-read pair
(since hardware rev 1), we recognize the latter case and
implement only that.
Signed-off-by: Ellen Wang <ellen@cumulusnetworks.com>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
Diffstat (limited to 'drivers/hid/hid-kye.c')
0 files changed, 0 insertions, 0 deletions