From patchwork Tue Mar 22 13:13:58 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Henrik Rydberg X-Patchwork-Id: 87943 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from chlorine.canonical.com (chlorine.canonical.com [91.189.94.204]) by ozlabs.org (Postfix) with ESMTP id 497DEB6F77 for ; Wed, 23 Mar 2011 03:24:02 +1100 (EST) Received: from localhost ([127.0.0.1] helo=chlorine.canonical.com) by chlorine.canonical.com with esmtp (Exim 4.71) (envelope-from ) id 1Q24N9-00079C-Ar; Tue, 22 Mar 2011 16:23:55 +0000 Received: from ch-smtp05.sth.basefarm.net ([80.76.153.6]) by chlorine.canonical.com with esmtp (Exim 4.71) (envelope-from ) id 1Q21M3-0004JU-4g for kernel-team@lists.ubuntu.com; Tue, 22 Mar 2011 13:10:35 +0000 Received: from c83-254-52-20.bredband.comhem.se ([83.254.52.20]:47674 helo=polaris) by ch-smtp05.sth.basefarm.net with smtp (Exim 4.73) (envelope-from ) id 1Q21Lk-0001qS-I9 for kernel-team@lists.ubuntu.com; Tue, 22 Mar 2011 14:10:20 +0100 Received: by polaris (sSMTP sendmail emulation); Tue, 22 Mar 2011 14:14:07 +0100 From: "Henrik Rydberg" To: kernel-team@lists.ubuntu.com Subject: [PATCH 2/4] HID: ntrig: apply NO_INIT_REPORTS quirk Date: Tue, 22 Mar 2011 14:13:58 +0100 Message-Id: <1300799640-5131-3-git-send-email-rydberg@euromail.se> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1300799640-5131-1-git-send-email-rydberg@euromail.se> References: <1300799640-5131-1-git-send-email-rydberg@euromail.se> X-Originating-IP: 83.254.52.20 X-Scan-Result: No virus found in message 1Q21Lk-0001qS-I9. X-Scan-Signature: ch-smtp05.sth.basefarm.net 1Q21Lk-0001qS-I9 b99ae2d5eccfa8eba4587b0382700079 X-Mailman-Approved-At: Tue, 22 Mar 2011 16:23:52 +0000 X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.13 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: kernel-team-bounces@lists.ubuntu.com Errors-To: kernel-team-bounces@lists.ubuntu.com From: Rafi Rubin 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 Signed-off-by: Jiri Kosina Signed-off-by: Henrik Rydberg --- drivers/hid/hid-ntrig.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) 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) {