]> git.baikalelectronics.ru Git - kernel.git/commit
HID: i2c-hid: The interrupt should be level sensitive
authorMika Westerberg <mika.westerberg@linux.intel.com>
Mon, 26 Jan 2015 14:29:32 +0000 (16:29 +0200)
committerJiri Kosina <jkosina@suse.cz>
Tue, 17 Feb 2015 12:23:13 +0000 (13:23 +0100)
commitce9c1d43a67ddcd542c8894e2117b6727b192440
tree0296fbce0574acd035e5162877e9a0a0235e1c23
parent09363484d3d561870ad4a8756f657f4984a1d663
HID: i2c-hid: The interrupt should be level sensitive

The Microsoft HID over I2C specification says two things regarding the
interrupt:

 1) The interrupt should be level sensitive
 2) The device keeps the interrupt asserted as long as it has more reports
    available.

We've seen that at least some Atmel and N-Trig panels keep the line low as
long as they have something to send. The current version of the driver only
detects the first edge but then fails to read rest of the reports (as the
line is still asserted).

Make the driver follow the specification and configure the HID interrupt to
be level sensitive.

The Windows HID over I2C driver also seems to do the same.

Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Acked-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/i2c-hid/i2c-hid.c