Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp24212pxk; Tue, 15 Sep 2020 16:41:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxqjGafHadoonzmEoxgbcfMFhdqc/+cnBssbnFMDNFGf04kKRPoGYFpbVA1BBV5O7p4TVc2 X-Received: by 2002:a05:6402:1495:: with SMTP id e21mr24408276edv.146.1600213317556; Tue, 15 Sep 2020 16:41:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600213317; cv=none; d=google.com; s=arc-20160816; b=nEfLE+JmYS+x3kujsYkfcWhPReVhfdMjspe1STINCl+E8MzfGPCoehMC9E4hrHRARU syYa0+P0kpPDv0goDECrHbMYnMnBJkFbqoLhLRGnjjZjTDPqHSbrQsYy0WLGqjLpvudu atZKKh1BUAaCeLL3ZgrdSitXWjYwIh5jkxltCvE6KBz4R+FTwSqSh5t23cAVY8FXYBQF sIrPcHmD4iJk1Ab0++l24XWZETv/mqXiptOmn1kk4C3KRZE6iUauQfzrPj/mbsdTUEmP Rmm78GWKhyXLOXTKJLLXOhXUVfFbT4knahI5Av1sz649+JQ3ZiJwBdsEVJyTovQk2dAI 4Liw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=CyLeI8p+54t7Cq+HIE9WdLIewboseSUy1hco0P748PQ=; b=oliwp8wW4cebEaD/T9d/CUl8SAkDe9trncpVAbvdnkoKncj62q2bG97eChUgUpSRuo UP/JLUryNdiKbySUeg5VVz1gu1zqC4NywHa1/iy/drSEfCoChDBlLAf4NUDWUUzjSaqr cbcfT+n6r5Ip5Ksi4Axi/B2ZkQvG55Y2Paeepb6yfghSlAayN5eFGbs5aA+9S56m5LKS x9f11OjqaDaxoeWwOIV9cAa37mHzORB5NrZZQyYrA9/hLWYFLBJ96AmKvgJRWq/E3a8K DvIoAkr+oPrjzsEKkz7MJVL5MbksccF6f9TqWY/sjLuUmceDE0aXR5PpODoV1w73NZCa B93w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ftLe32mx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id pv7si9532537ejb.753.2020.09.15.16.41.35; Tue, 15 Sep 2020 16:41:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ftLe32mx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727397AbgIOXkx (ORCPT + 99 others); Tue, 15 Sep 2020 19:40:53 -0400 Received: from mail.kernel.org ([198.145.29.99]:47678 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727064AbgIOOem (ORCPT ); Tue, 15 Sep 2020 10:34:42 -0400 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 6999B22227; Tue, 15 Sep 2020 14:16:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600179382; bh=rZxwYDHjK3qI25qdiskJGXz3d9ftzvsrU/pwOlWWUA4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ftLe32mxxOx4QNWRN1IDvGx/SWj9E7iAnzXmksBkoBN0aG8YNUku7cPt/sjHJqlzE QjeX7haXaUTFXXdalq8uxqUK2gV3u4e3wxqNk9xOQbMdH98j8YeQMXVJt2n/ngvOsS YDLt2XRr/2EltqhbRhzsB96dgs9N0CSQLwJhI5b4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Nirenjan Krishnan , Jiri Kosina , Sasha Levin Subject: [PATCH 4.19 30/78] HID: quirks: Set INCREMENT_USAGE_ON_DUPLICATE for all Saitek X52 devices Date: Tue, 15 Sep 2020 16:12:55 +0200 Message-Id: <20200915140635.094550881@linuxfoundation.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200915140633.552502750@linuxfoundation.org> References: <20200915140633.552502750@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Nirenjan Krishnan [ Upstream commit 77df710ba633dfb6c65c65cf99ea9e084a1c9933 ] The Saitek X52 family of joysticks has a pair of axes that were originally (by the Windows driver) used as mouse pointer controls. The corresponding usage page is the Game Controls page, which is not recognized by the generic HID driver, and therefore, both axes get mapped to ABS_MISC. The quirk makes the second axis get mapped to ABS_MISC+1, and therefore made available separately. One Saitek X52 device is already fixed. This patch fixes the other two known devices with VID/PID 06a3:0255 and 06a3:0762. Signed-off-by: Nirenjan Krishnan Signed-off-by: Jiri Kosina Signed-off-by: Sasha Levin --- drivers/hid/hid-ids.h | 2 ++ drivers/hid/hid-quirks.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/drivers/hid/hid-ids.h b/drivers/hid/hid-ids.h index 2c100b73d3fc1..e18d796d985f8 100644 --- a/drivers/hid/hid-ids.h +++ b/drivers/hid/hid-ids.h @@ -985,6 +985,8 @@ #define USB_DEVICE_ID_SAITEK_RAT9 0x0cfa #define USB_DEVICE_ID_SAITEK_MMO7 0x0cd0 #define USB_DEVICE_ID_SAITEK_X52 0x075c +#define USB_DEVICE_ID_SAITEK_X52_2 0x0255 +#define USB_DEVICE_ID_SAITEK_X52_PRO 0x0762 #define USB_VENDOR_ID_SAMSUNG 0x0419 #define USB_DEVICE_ID_SAMSUNG_IR_REMOTE 0x0001 diff --git a/drivers/hid/hid-quirks.c b/drivers/hid/hid-quirks.c index 62f87f8bd9720..2d8d20a7f4574 100644 --- a/drivers/hid/hid-quirks.c +++ b/drivers/hid/hid-quirks.c @@ -147,6 +147,8 @@ static const struct hid_device_id hid_quirks[] = { { 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_SAITEK, USB_DEVICE_ID_SAITEK_X52_2), HID_QUIRK_INCREMENT_USAGE_ON_DUPLICATE }, + { HID_USB_DEVICE(USB_VENDOR_ID_SAITEK, USB_DEVICE_ID_SAITEK_X52_PRO), 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 }, -- 2.25.1