Patchwork [2/4] HID: ntrig: apply NO_INIT_REPORTS quirk

login
register
mail settings
Submitter Henrik Rydberg
Date March 22, 2011, 1:13 p.m.
Message ID <1300799640-5131-3-git-send-email-rydberg@euromail.se>
Download mbox | patch
Permalink /patch/87943/
State New
Headers show

Comments

Henrik Rydberg - March 22, 2011, 1:13 p.m.
From: Rafi Rubin <rafi@seas.upenn.edu>

Probing reports does bad things with some ntrig firmwares, better to
just leave them alone.

[rydberg@euromail.se: wiggled for natty]
Signed-off-by: Rafi Rubin <rafi@seas.upenn.edu>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
---
 drivers/hid/hid-ntrig.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

Patch

diff --git a/drivers/hid/hid-ntrig.c b/drivers/hid/hid-ntrig.c
index 33d371a..6de7f95 100644
--- a/drivers/hid/hid-ntrig.c
+++ b/drivers/hid/hid-ntrig.c
@@ -407,6 +407,8 @@  static int ntrig_probe(struct hid_device *hdev, const struct hid_device_id *id)
 
 	if (id->driver_data & NTRIG_DUPLICATE_USAGES)
 		hdev->quirks |= HID_QUIRK_MULTI_INPUT;
+	if (id->driver_data)
+		hdev->quirks |= HID_QUIRK_NO_INIT_REPORTS;
 
 	nd = kzalloc(sizeof(struct ntrig_data), GFP_KERNEL);
 	if (!nd) {