Re: [PATCH v1] HID: cp2112: support i2c write-read transfers in hid-cp2112

3 messages, 3 authors, 2015-07-10 · open the first message on its own page

Re: [PATCH v1] HID: cp2112: support i2c write-read transfers in hid-cp2112

From: Ellen Wang <hidden>
Date: 2015-07-08 10:33:05

On 07/08/2015 02:34 AM, Jiri Kosina wrote:
On Sat, 20 Jun 2015, Antonio Borneo wrote:
quoted
quoted
Signed-off-by: Ellen Wang <redacted>
---
  drivers/hid/hid-cp2112.c |   74 ++++++++++++++++++++++++++++++++++------------
  1 file changed, 55 insertions(+), 19 deletions(-)
diff --git a/drivers/hid/hid-cp2112.c b/drivers/hid/hid-cp2112.c
index 5a72819..00d062a 100644
--- a/drivers/hid/hid-cp2112.c
+++ b/drivers/hid/hid-cp2112.c
@@ -153,6 +153,7 @@ MODULE_DEVICE_TABLE(hid, cp2112_devices);
  struct cp2112_device {
         struct i2c_adapter adap;
         struct hid_device *hdev;
+       int hwversion;
No need for int; u8 is enough (value is copyed from buf[2] that is u8).
Put the new u8 field few lines below, together with the other u8, to
avoid extra padding.

No need to send immediately a new version. Let's see if there is any
other comment and if someone can test it before me.
Antonio, is there any result of your testing? I have put this patch on
hold waiting for your word on it, but it has been ~3 weeks already.

Thanks,
This patch should be applied after my other patch:
https://patchwork.ozlabs.org/patch/492842/

Re: [PATCH v1] HID: cp2112: support i2c write-read transfers in hid-cp2112

From: Jiri Kosina <hidden>
Date: 2015-07-09 12:22:43

On Wed, 8 Jul 2015, Ellen Wang wrote:
quoted
quoted
No need for int; u8 is enough (value is copyed from buf[2] that is u8).
Put the new u8 field few lines below, together with the other u8, to
avoid extra padding.

No need to send immediately a new version. Let's see if there is any
other comment and if someone can test it before me.
Antonio, is there any result of your testing? I have put this patch on
hold waiting for your word on it, but it has been ~3 weeks already.

Thanks,
This patch should be applied after my other patch:
https://patchwork.ozlabs.org/patch/492842/
Well, it actually conflicts with it :) The conflict is easy to resolve, 
but as you might be sending v2 anyway, please rebase it on top of 
for-4.3/cp2112 when doing so.

Thanks,

-- 
Jiri Kosina
SUSE Labs

Re: [PATCH v1] HID: cp2112: support i2c write-read transfers in hid-cp2112

From: Ellen Wang <hidden>
Date: 2015-07-10 07:03:32

On 07/09/2015 05:22 AM, Jiri Kosina wrote:
On Wed, 8 Jul 2015, Ellen Wang wrote:
...
quoted
This patch should be applied after my other patch:
https://patchwork.ozlabs.org/patch/492842/
Well, it actually conflicts with it :) The conflict is easy to resolve,
but as you might be sending v2 anyway, please rebase it on top of
for-4.3/cp2112 when doing so.

Thanks,
v2 sent, based on for-4.3/cp2112.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help