From patchwork Wed Jul 24 18:08:06 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: 11057497 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 7FA03138D for ; Wed, 24 Jul 2019 18:08:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 705E1288D0 for ; Wed, 24 Jul 2019 18:08:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 63B80288D9; Wed, 24 Jul 2019 18:08:58 +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 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 605BB288D0 for ; Wed, 24 Jul 2019 18:08:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725944AbfGXSI4 (ORCPT ); Wed, 24 Jul 2019 14:08:56 -0400 Received: from mail-wm1-f66.google.com ([209.85.128.66]:35021 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726849AbfGXSI4 (ORCPT ); Wed, 24 Jul 2019 14:08:56 -0400 Received: by mail-wm1-f66.google.com with SMTP id l2so42432335wmg.0; Wed, 24 Jul 2019 11:08:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=i14fTTw+f051XXIemGb6vJgII9ThG5ePThWv/SW1yYo=; b=BEg2hD7xskXA1YcgoyZRzjhZYnxldpcKnMJBA06U3kXlEBL0f3ZbQSQXUEid5NM2Io Cz5eNJBQ/QYesAtZpqQle4B8tK3MZnx4bw3+Ry/cp1BqzP2ZUwDzoyTe25CdFMuGlZAQ bpRRYe9+5d0STpBUnTSCejFz6wzD4dZ/ir3YKNeM4UsXy+fyQ2aVJBKcg/uRZDN5skXM 7OGqB0jRu/5dfHNNRBoj/CTdkbH//ESkBVw9BtMjX4g7YYGJExtUC8Daoy7ryhHeoSDz EhjIpJXii898vtfqcjT7F9R97kldwWFDiRg+L6i5Hw+Zz//eQ7TRPZ9u7Ut059yVuqCO rERQ== 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 :mime-version:content-transfer-encoding; bh=i14fTTw+f051XXIemGb6vJgII9ThG5ePThWv/SW1yYo=; b=RgA/JrMDrU97q44VLbfmDFXjciPkiXGSUu6EqO1Zn5zfy7LXwVj0Gwg9WVqaj3BU6H JwBI5JJYDA1cxkqYmoZdViSAt8Q57+bBDHtW/GVFkpcrNSx6gL+ITVStw25A2Dk3rbWF h4ro4xMDt+cf5Bg/erkPANojFwjAU6KMeu3DBuzd2/VVcxWoQ/vNl+sGCt+vkYnWP7iS 7cu1TvUNA4U1ukCl082jR58lJ5Is9fUORBhtCFusZFT6Agl9fwR3nl9CkRkIAX+PaPEn vDub65afucS9a4sE9B4qLAFHUZh1AftGL6wfI78sMs+J154upk8PPLfEigj98vX7w97Y aCEQ== X-Gm-Message-State: APjAAAVLeh3IFeVlAixWRclbNGUjz7kPt8RUCedDe05yrgpL7KFmLUbO ZxVS40Zvj11sTFCfaH6gdGQ= X-Google-Smtp-Source: APXvYqzrdgTgsfgCbbtuX3rU+McvJPj89EX4iVm8NzeO/mjgNSvTNp+bCAmp30fdxTne30D952HDkA== X-Received: by 2002:a1c:c188:: with SMTP id r130mr71431610wmf.73.1563991734119; Wed, 24 Jul 2019 11:08:54 -0700 (PDT) Received: from localhost.localdomain (2a01-036d-0114-26a3-859c-fac3-f08a-f3a6.pool6.digikabel.hu. [2a01:36d:114:26a3:859c:fac3:f08a:f3a6]) by smtp.gmail.com with ESMTPSA id f70sm56183732wme.22.2019.07.24.11.08.53 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Wed, 24 Jul 2019 11:08:53 -0700 (PDT) From: =?utf-8?b?SXN0dsOhbiBWw6FyYWRp?= Cc: =?utf-8?b?SXN0dsOhbiBWw6FyYWRp?= , Jiri Kosina , Benjamin Tissoires , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] HID: Add Saitek X52 to the HID IDs Date: Wed, 24 Jul 2019 20:08:06 +0200 Message-Id: <20190724180806.5745-1-ivaradi@varadiistvan.hu> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 To: unlisted-recipients:; (no To-header on input) 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 USB device ID of the Saitek X52 joystick is added as a define to hid-ids.h. Signed-off-by: István Váradi --- drivers/hid/hid-ids.h | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/hid/hid-ids.h b/drivers/hid/hid-ids.h index 0d695f8e1b2c..3a90962614ef 100644 --- a/drivers/hid/hid-ids.h +++ b/drivers/hid/hid-ids.h @@ -989,6 +989,7 @@ #define USB_DEVICE_ID_SAITEK_RAT7 0x0cd7 #define USB_DEVICE_ID_SAITEK_RAT9 0x0cfa #define USB_DEVICE_ID_SAITEK_MMO7 0x0cd0 +#define USB_DEVICE_ID_SAITEK_X52 0x075c #define USB_VENDOR_ID_SAMSUNG 0x0419 #define USB_DEVICE_ID_SAMSUNG_IR_REMOTE 0x0001 From patchwork Wed Jul 24 18:09:18 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: 11057499 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 55016138D for ; Wed, 24 Jul 2019 18:09:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 468B1288D0 for ; Wed, 24 Jul 2019 18:09:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3AFA9288D9; Wed, 24 Jul 2019 18:09:30 +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 D9299288D0 for ; Wed, 24 Jul 2019 18:09:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726849AbfGXSJ3 (ORCPT ); Wed, 24 Jul 2019 14:09:29 -0400 Received: from mail-wm1-f65.google.com ([209.85.128.65]:50329 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726300AbfGXSJ3 (ORCPT ); Wed, 24 Jul 2019 14:09:29 -0400 Received: by mail-wm1-f65.google.com with SMTP id v15so42668236wml.0; Wed, 24 Jul 2019 11:09:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=tr730TPyiRSMnmgmYHVEvt0pnTgHm5PtfAW9oSx+PLg=; b=npi9pu+llLoDSzpo/qCwUbnJDz1nBoNYXXdl+lIvvSj0YHgMaQ5l94csIO3y1jWsR4 pht6ilwaNzfbFKgLF0Nnh9spLviwGMcxP5I1YLsUmjtMwSd1WVbqEmkToT1G26ueNEqT 1XJKp2F7RsEeteOlNF2IKz4ZQ3aAbDFtTByETP/TUxUX68xcjp0R9+nuUT5u5fA0w6CG V+ud5fkCVBftgsFcXJu5qZxKM8vRH5Xgy0AkL+TJFGZpVUKauR9QFIJHpDBq3p3eHfa5 6Sb8zdjvVNLtCTEaVcAy5E35v3Uk2iEsXIPu43i+8wgssiYfhHsDymzdNvtSxC30PVl/ N7zQ== 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 :mime-version:content-transfer-encoding; bh=tr730TPyiRSMnmgmYHVEvt0pnTgHm5PtfAW9oSx+PLg=; b=hYfO11lTHLHL5RCZsVwvSy7i8EfhwteMSyhT24BT3ZmYn0aeFRrRMOKIHiYovWUfR1 Pmn/JrgmxNqPt2jeicf8UA3ENijIV/Py3/xdv0Kx4qAnvjwNV9OCDxCf+Dxjujs93a+k ZGVyoUKcePln5iOie6ZZpip7zqSx6gZCLpBKFDouOMTUq9D0wQ9p3Zxl+JpPItxsRGGk hB/+o9TSPOgIc0K5y5K17tBjHYfrN6yONvMiJ5PJ2Vsrde2vRB5lhE59XD0viJed4EUG 9hYFp7ycql5Q9Rt1F1Yc+wP6DLcpzA7TrHu83ir718UECr/4PHbvrIS9sT5l9jMcHbkM /YIA== X-Gm-Message-State: APjAAAWF18kNFMfiUt7kh4HkBWaDbvcdiZ7VPDXjo8dBFp1fEEfDRnrX J/5MG8v7kUHImbZnjAvLAi8eB9Mtznc= X-Google-Smtp-Source: APXvYqxNAF7Uifi0O2qp7spk4dtvv+svXKGD05RvENSpt2ny34sh511vc1z9RcXWvZiTcUmoP+ZCfw== X-Received: by 2002:a7b:c212:: with SMTP id x18mr73808451wmi.77.1563991766651; Wed, 24 Jul 2019 11:09:26 -0700 (PDT) Received: from vi.lan (2a01-036d-0114-26a3-859c-fac3-f08a-f3a6.pool6.digikabel.hu. [2a01:36d:114:26a3:859c:fac3:f08a:f3a6]) by smtp.gmail.com with ESMTPSA id y16sm95464629wrg.85.2019.07.24.11.09.25 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Wed, 24 Jul 2019 11:09:26 -0700 (PDT) From: =?utf-8?b?SXN0dsOhbiBWw6FyYWRp?= Cc: =?utf-8?b?SXN0dsOhbiBWw6FyYWRp?= , Jiri Kosina , Benjamin Tissoires , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] HID: quirks: Set the INCREMENT_USAGE_ON_DUPLICATE quirk on Saitek X52 Date: Wed, 24 Jul 2019 20:09:18 +0200 Message-Id: <20190724180918.5987-1-ivaradi@varadiistvan.hu> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 To: unlisted-recipients:; (no To-header on input) 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 185a577c46f6..7b18adb4922f 100644 --- a/drivers/hid/hid-quirks.c +++ b/drivers/hid/hid-quirks.c @@ -141,6 +141,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 },