Re: [PATCH v1] i2c-hid: introduce HID over i2c specification implementation

From
Shubhrajyoti Datta <hidden>
Date
2012-10-03 16:14:14
Also in
linux-i2c, lkml
Reply to
Benjamin Tissoires, 2012-10-03
On Wed, Oct 3, 2012 at 9:03 PM, Benjamin Tissoires
[off-list ref] wrote:
Hi,

thanks also for the review. Two in the same day! I was about to send a
ping on that patch.... ;-)

On Wed, Oct 3, 2012 at 8:05 AM, Shubhrajyoti Datta
[off-list ref] wrote:
quoted
On Fri, Sep 14, 2012 at 7:11 PM, benjamin.tissoires
[off-list ref] wrote:
quoted
From: Benjamin Tissoires <redacted>

Microsoft published the protocol specification of HID over i2c:
http://msdn.microsoft.com/en-us/library/windows/hardware/hh852380.aspx

This patch introduces an implementation of this protocol.

This implementation does not includes the ACPI part of the specification.
This will come when ACPI 5.0 devices will be available.

Once the ACPI part will be done, OEM will not have to declare HID over I2C
devices in their platform specific driver.

Signed-off-by: Benjamin Tissoires <redacted>
---

Hi,

this is finally my first implementation of HID over I2C.

This has been tested on an Elan Microelectronics HID over I2C device, with
a Samsung Exynos 4412 board.

Any comments are welcome.

Cheers,
Benjamin

 drivers/i2c/Kconfig         |    8 +
 drivers/i2c/Makefile        |    1 +
 drivers/i2c/i2c-hid.c       | 1027 +++++++++++++++++++++++++++++++++++++++++++
 include/linux/i2c/i2c-hid.h |   35 ++
 4 files changed, 1071 insertions(+)
 create mode 100644 drivers/i2c/i2c-hid.c
 create mode 100644 include/linux/i2c/i2c-hid.h
diff --git a/drivers/i2c/Kconfig b/drivers/i2c/Kconfig
[...]
same thing, will change it in v2.
quoted
quoted
+
+       if (debug)
+               dev_err(&client->dev, "resetting...\n");
this is a little uncustomary.

May be consider  bdg
Sorry for that. I don't get your point here. You don't like the whole
"if(debug) dev_err(...)" or just the "dev_err(...)" call?
Apologies for the typo dev_dbg.
Thread (26 messages) 26 messages, 7 authors, last reply 2012-10-15
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