From patchwork Fri Oct 23 17:27:27 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: simon@mungewell.org X-Patchwork-Id: 7474381 X-Patchwork-Delegate: jikos@jikos.cz Return-Path: X-Original-To: patchwork-linux-input@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id C69A6BEEA4 for ; Fri, 23 Oct 2015 17:50:46 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D7F3120668 for ; Fri, 23 Oct 2015 17:50:45 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0A5B220601 for ; Fri, 23 Oct 2015 17:50:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753944AbbJWRuU (ORCPT ); Fri, 23 Oct 2015 13:50:20 -0400 Received: from host18.canaca.com ([66.49.204.205]:58863 "EHLO host18.canaca.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753331AbbJWRuT (ORCPT ); Fri, 23 Oct 2015 13:50:19 -0400 X-Greylist: delayed 1357 seconds by postgrey-1.27 at vger.kernel.org; Fri, 23 Oct 2015 13:50:19 EDT DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mungewell.org; s=default; h=References:In-Reply-To:Message-Id:Date:Subject: Cc:To:From; bh=sE9mLNSTveA6uWNN45dfCYzvLEZgKdCv3VBc1J1K9+s=; b=EUW0ZdnFVW/W0V Zm8Y+dpxYWJNV2in8LGVuWVLCrZkO/y8wVYXtkHxOD/bdtJ9B6fWy/+sb+YzdsX2hr2Yyjrvp0JCy G5rh7HPPtYLe1arDOR5NwFLpuxAp315zFBu2LsaKk1IusZ156GtNQKzpUzfk1JvwF1Z6Vnnv9Axuz u3Yv+fQFLgjOdXaVauM3/JjzdvyvVVsQoNsQU3ro515sAj/MouAREXvECrB7plLw0HWRVpSBKpiod 81skjLG2NBs9XhttQZhXJ+mLvVZXZ3KTaRveBXf+Q9KyD5WrXR2ysmeRX4MeaOH5Id5PRHWndSQFA VmJOkhrKmK+xVB99BlCg==; Received: from s0106001636936322.lb.shawcable.net ([24.64.170.193]:46348 helo=retrobox.lb.shawcable.net) by host18.canaca.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-SHA256:128) (Exim 4.86) (envelope-from ) id 1Zpg7z-0007RX-9J; Fri, 23 Oct 2015 13:27:43 -0400 From: Simon Wood To: linux-input@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Jiri Kosina , Edwin , =?UTF-8?q?Michal=20Mal=C3=BD?= , elias vanderstuyft , Simon Wood Subject: [RFC 5/5] HID: Add vendor specific usage pages for Logitech G920 Date: Fri, 23 Oct 2015 11:27:27 -0600 Message-Id: <1445621247-18806-5-git-send-email-simon@mungewell.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1445621247-18806-1-git-send-email-simon@mungewell.org> References: <1445621247-18806-1-git-send-email-simon@mungewell.org> X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - host18.canaca.com X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - mungewell.org X-Get-Message-Sender-Via: host18.canaca.com: authenticated_id: gitsend@mungewell.org X-Authenticated-Sender: host18.canaca.com: gitsend@mungewell.org X-Source: X-Source-Args: X-Source-Dir: Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The Logitech G920 uses a couple of vendor specific usage pages, which results in incorrect number of axis/buttons being detected. This patch adds these pages to the 'ignore' list. Reported-by: Elias Vanderstuyft --- drivers/hid/hid-input.c | 2 +- include/linux/hid.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/hid/hid-input.c b/drivers/hid/hid-input.c index 53aeaf6..c120be5 100644 --- a/drivers/hid/hid-input.c +++ b/drivers/hid/hid-input.c @@ -959,7 +959,7 @@ static void hidinput_configure_usage(struct hid_input *hidinput, struct hid_fiel set_bit(EV_REP, input->evbit); goto ignore; - case HID_UP_LOGIVENDOR: + case HID_UP_LOGIVENDOR: case HID_UP_LOGIVENDOR2: case HID_UP_LOGIVENDOR3: goto ignore; case HID_UP_PID: diff --git a/include/linux/hid.h b/include/linux/hid.h index f17980d..ce1d883 100644 --- a/include/linux/hid.h +++ b/include/linux/hid.h @@ -168,6 +168,8 @@ struct hid_item { #define HID_UP_MSVENDOR 0xff000000 #define HID_UP_CUSTOM 0x00ff0000 #define HID_UP_LOGIVENDOR 0xffbc0000 +#define HID_UP_LOGIVENDOR2 0xff090000 +#define HID_UP_LOGIVENDOR3 0xff430000 #define HID_UP_LNVENDOR 0xffa00000 #define HID_UP_SENSOR 0x00200000