[PATCH v2] HID: cp2112: Fix I2C_BLOCK_DATA transactions

2017-11-21 Thread Eudean Sun
are using i2cdump with the i and s flags to test the behavior of I2C_BLOCK_DATA reads and BLOCK_DATA reads, respectively. Writes were not tested but the I2C_BLOCK_DATA write change is pretty simple to verify by inspection. Signed-off-by: Eudean Sun --- Changes in v2: - Explain the fix and testi

Re: [PATCH] HID: cp2112: Fix I2C_BLOCK_DATA transactions

2017-11-21 Thread Eudean Sun
On Tue, Nov 21, 2017 at 05:45:32PM +0100, Jiri Kosina wrote: > On Tue, 21 Nov 2017, Jiri Kosina wrote: > > > > The existing driver erroneously treats I2C_BLOCK_DATA and BLOCK_DATA > > > commands the same. Fix the logic for I2C_BLOCK_DATA reads and writes. > > > > Addin David, the original author

[PATCH] HID: cp2112: Fix I2C_BLOCK_DATA transactions

2017-11-13 Thread Eudean Sun
The existing driver erroneously treats I2C_BLOCK_DATA and BLOCK_DATA commands the same. Fix the logic for I2C_BLOCK_DATA reads and writes. Signed-off-by: Eudean Sun --- drivers/hid/hid-cp2112.c | 15 +-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/drivers/hid/hid