From patchwork Tue Feb 19 15:55:03 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?SXN0dsOhbiBWw6FyYWRp?= X-Patchwork-Id: 10820079 X-Patchwork-Delegate: jikos@jikos.cz Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 9D1C21390 for ; Tue, 19 Feb 2019 15:55:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7E7472C603 for ; Tue, 19 Feb 2019 15:55:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 72BDC2C607; Tue, 19 Feb 2019 15:55:16 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.7 required=2.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI,UPPERCASE_50_75 autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1CB9E2C603 for ; Tue, 19 Feb 2019 15:55:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726246AbfBSPzP (ORCPT ); Tue, 19 Feb 2019 10:55:15 -0500 Received: from mail-wm1-f65.google.com ([209.85.128.65]:54568 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725820AbfBSPzP (ORCPT ); Tue, 19 Feb 2019 10:55:15 -0500 Received: by mail-wm1-f65.google.com with SMTP id a62so3377078wmh.4 for ; Tue, 19 Feb 2019 07:55:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=oQSaXt/6j02Qnr3adgfHJq9sqHMcabNoHjmv5vIGiFk=; b=HrPWbH7rRXSOo4gG9LeYV5vbmTwssr6wDl9wP7npXcUqSi+XYn5IaSJiYEUgeccjbQ +GYo1eeXv6ud7H7vxGkrUtQrc2c3fFRNkddq9u0uju3Do3OdBiCKOVA+i7KNJnKvBRew KJ/v/QTL6Gu+6QzLpV0LV0RizmW/YwGVnIrhZmWf7owNP8M37HSaxYuHsqqwqr9h2kSa N1UcJVfS+2Jcb4UK8//5JkWCjlhS1DTLJXdPNo/1LLw7I0JIBxDxh3hsPvprMDDJu/zm hCM4sArvu14dZBTzW/tROsSyXgcqaH5ZzH4uLmlaqi2E9cLc/F96LP+1e8hoD6sRe3Xb cYow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=oQSaXt/6j02Qnr3adgfHJq9sqHMcabNoHjmv5vIGiFk=; b=HZhZ/R1lSlBbpo+oDO0uWybELbPj+oSEZ0rGyI/59bmaeiddMijYv+HoJStFx9Da3u Z10ImTEv74/ATmr6fKzjCxg+dP6bNpWW0pa7t5loE9dqC2RL29bsN/TJgeqTHqAoMwih QTpVoZ/Abut2gkLu0NpJRCpJaNGFUdS5vYGtK9Ll12v1xZu49qmQP+yRRdfjuY5ZVEd1 iyW4IJd5Ki/SjwUlqtsrrvrUh15jW0Eb3RRr1Fodo2buHh+uceuu2xHqiE2E8EAUEEL5 N1xMxdcosSOOR2fD+rU9YXmUqdUX6IUfWEEEJYk/fgT+LYgVp+otDtf8qZ9GATbdp0kp SsVg== X-Gm-Message-State: AHQUAua+9U8Zol6c2MCIJSgSbDIwyE2eR+y2bY/TXr+IEISEqMyGJ1jV lAkNhZecdB6A7YfJHtZQ2afVKByMg/I= X-Google-Smtp-Source: AHgI3IZ6QbZ0YA0M3ujIjiYaXzqoD7A+q1SPiwkGoBYORsx0JJ55iGqRRYhvwTajMlbfnhk0xdBElQ== X-Received: by 2002:a05:600c:2210:: with SMTP id z16mr3267390wml.57.1550591712856; Tue, 19 Feb 2019 07:55:12 -0800 (PST) Received: from localhost.localdomain (2a01-036d-0114-40c3-bcb9-f0cd-7220-108a.pool6.digikabel.hu. [2a01:36d:114:40c3:bcb9:f0cd:7220:108a]) by smtp.gmail.com with ESMTPSA id x3sm13964777wru.76.2019.02.19.07.55.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 19 Feb 2019 07:55:12 -0800 (PST) From: =?utf-8?b?SXN0dsOhbiBWw6FyYWRp?= To: linux-input@vger.kernel.org Cc: =?utf-8?b?SXN0dsOhbiBWw6FyYWRp?= Subject: [PATCH 2/2] Set the INCREMENT_USAGE_ON_DUPLICATE quirk on Saitek X52. Date: Tue, 19 Feb 2019 16:55:03 +0100 Message-Id: <20190219155503.21248-2-ivaradi@varadiistvan.hu> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20190219155503.21248-1-ivaradi@varadiistvan.hu> References: <20190219155503.21248-1-ivaradi@varadiistvan.hu> MIME-Version: 1.0 Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The Saitek X52 joystick has a pair of axes that are originally (by the Windows driver) used as mouse pointer controls. The corresponding usage->hid values are 0x50024 and 0x50026. Thus they are handled as unknown axes and both get mapped to ABS_MISC. The quirk makes the second axis to be mapped to ABS_MISC1 and thus made available separately. Signed-off-by: István Váradi --- drivers/hid/hid-quirks.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/hid/hid-quirks.c b/drivers/hid/hid-quirks.c index 94088c0ed68a..468ffc50fc9c 100644 --- a/drivers/hid/hid-quirks.c +++ b/drivers/hid/hid-quirks.c @@ -140,6 +140,7 @@ static const struct hid_device_id hid_quirks[] = { { HID_USB_DEVICE(USB_VENDOR_ID_RETROUSB, USB_DEVICE_ID_RETROUSB_SNES_RETROPAD), HID_QUIRK_INCREMENT_USAGE_ON_DUPLICATE }, { HID_USB_DEVICE(USB_VENDOR_ID_RETROUSB, USB_DEVICE_ID_RETROUSB_SNES_RETROPORT), HID_QUIRK_INCREMENT_USAGE_ON_DUPLICATE }, { HID_USB_DEVICE(USB_VENDOR_ID_SAITEK, USB_DEVICE_ID_SAITEK_RUMBLEPAD), HID_QUIRK_BADPAD }, + { HID_USB_DEVICE(USB_VENDOR_ID_SAITEK, USB_DEVICE_ID_SAITEK_X52), HID_QUIRK_INCREMENT_USAGE_ON_DUPLICATE }, { HID_USB_DEVICE(USB_VENDOR_ID_SEMICO, USB_DEVICE_ID_SEMICO_USB_KEYKOARD2), HID_QUIRK_NO_INIT_REPORTS }, { HID_USB_DEVICE(USB_VENDOR_ID_SEMICO, USB_DEVICE_ID_SEMICO_USB_KEYKOARD), HID_QUIRK_NO_INIT_REPORTS }, { HID_USB_DEVICE(USB_VENDOR_ID_SENNHEISER, USB_DEVICE_ID_SENNHEISER_BTD500USB), HID_QUIRK_NOGET },