Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp406178pxu; Tue, 1 Dec 2020 14:27:38 -0800 (PST) X-Google-Smtp-Source: ABdhPJwBggA4UyrVet3FsafYjnnYkC5vGe4hwRPggY2mYb2ay3oExCt66xgr7Oa4hRHSv5FUU2Tt X-Received: by 2002:a17:906:1945:: with SMTP id b5mr5504674eje.388.1606861658425; Tue, 01 Dec 2020 14:27:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606861658; cv=none; d=google.com; s=arc-20160816; b=zL+Mipb+KkMeVmCCfR1dFsZqt7gkVtFEdbBex5us+DwZocvK5zp890S9fjiF2Ur0zY xgwEkHgelwInwbVIIvgOqQLu7uihyW9eQrfeI7vchfnq/IRou8d9t4DVuFqQF0fjaw2M jJluil5Fkl33SIqTR0PAfjkpqVnaBCe60QAJiVZXLNC8k4ei2gN8G1udfL5sGeTQ9E1p SQICMnEghCsz7wPx5ypYX48lChCJFjnaURNZaAoif7k8Ex0edLw0X8zWsUucr8TVAE3D cY2+vRowSTV5n4YnrR+4o3ryAb8oNq/VyK/1IklA+YZZeGjSvNqMowawMggq/vRSCp5R w9kw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=9DbWkldzpq3s5LEbQTrGIEyxtdJeua3mJ2UsxdlWdL8=; b=Twlac9wp3tWnDjteihtbM4OFDeZuEHdBqi7nB3tzNYBNQmNsdsPPhvdT6suSDVQ8s5 8HqwVVfjIFHWGJ8fRurU7ddqBEGmR58arxEZGOD8BJQudt763orlEGIEh1ABNM0cGYid P4Xw+ZY8MlPrZ3bdtTU98LF6QKWhg7r6ZUJNo3WiycXjq/8xbpE+48+bItXYpcn4l0Kc ClBCRuGWQ/VLyx50Mg37dU7LRY6nOK/1rIrUi2FPc9acesQ6nrpUpZouMFtlBRsFSebW lTuzZisk3EiDqzLA3jBUogybx1KmWBdNnLeZZfO5tLyABW7GMGsBVZD7ibBYCEZyZUEp t5yg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=k8SM60so; 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=pass (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 y12si747129eju.123.2020.12.01.14.27.16; Tue, 01 Dec 2020 14:27:38 -0800 (PST) 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=@linuxfoundation.org header.s=korg header.b=k8SM60so; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389761AbgLAJKq (ORCPT + 99 others); Tue, 1 Dec 2020 04:10:46 -0500 Received: from mail.kernel.org ([198.145.29.99]:48134 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389754AbgLAJKo (ORCPT ); Tue, 1 Dec 2020 04:10:44 -0500 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 2A6DD206C1; Tue, 1 Dec 2020 09:10:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1606813828; bh=T5rnfp3F3wYg2Pn8TDnxMX2cqai5pwu2xJg82n5oltc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=k8SM60soUD2B3YP6/P8iaC6OmrOwsxNg1Kw6CVkOzuGftWTCLLmY/fHlGgZmNWZRZ hDGfx4Nt4JBXDB2zk1NdJG12/7l6UHaehdtNoy+lRzhT3CWydkbVEiXznXVc54KGTE G3QtungYJ0ASZI2N1n5QUGPn9CAnC5MwBShoIdnA= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Chris Ye , Jiri Kosina , Sasha Levin Subject: [PATCH 5.9 046/152] HID: add HID_QUIRK_INCREMENT_USAGE_ON_DUPLICATE for Gamevice devices Date: Tue, 1 Dec 2020 09:52:41 +0100 Message-Id: <20201201084717.928840094@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201201084711.707195422@linuxfoundation.org> References: <20201201084711.707195422@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Chris Ye [ Upstream commit f59ee399de4a8ca4d7d19cdcabb4b63e94867f09 ] Kernel 5.4 introduces HID_QUIRK_INCREMENT_USAGE_ON_DUPLICATE, devices need to be set explicitly with this flag. Signed-off-by: Chris Ye Signed-off-by: Jiri Kosina Signed-off-by: Sasha Levin --- drivers/hid/hid-ids.h | 4 ++++ drivers/hid/hid-quirks.c | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/drivers/hid/hid-ids.h b/drivers/hid/hid-ids.h index 6d6c961f8fee7..96e84a51f6b2c 100644 --- a/drivers/hid/hid-ids.h +++ b/drivers/hid/hid-ids.h @@ -445,6 +445,10 @@ #define USB_VENDOR_ID_FRUCTEL 0x25B6 #define USB_DEVICE_ID_GAMETEL_MT_MODE 0x0002 +#define USB_VENDOR_ID_GAMEVICE 0x27F8 +#define USB_DEVICE_ID_GAMEVICE_GV186 0x0BBE +#define USB_DEVICE_ID_GAMEVICE_KISHI 0x0BBF + #define USB_VENDOR_ID_GAMERON 0x0810 #define USB_DEVICE_ID_GAMERON_DUAL_PSX_ADAPTOR 0x0001 #define USB_DEVICE_ID_GAMERON_DUAL_PCS_ADAPTOR 0x0002 diff --git a/drivers/hid/hid-quirks.c b/drivers/hid/hid-quirks.c index b154e11d43bfa..bf7ecab5d9e5e 100644 --- a/drivers/hid/hid-quirks.c +++ b/drivers/hid/hid-quirks.c @@ -85,6 +85,10 @@ static const struct hid_device_id hid_quirks[] = { { HID_USB_DEVICE(USB_VENDOR_ID_FUTABA, USB_DEVICE_ID_LED_DISPLAY), HID_QUIRK_NO_INIT_REPORTS }, { HID_USB_DEVICE(USB_VENDOR_ID_GREENASIA, USB_DEVICE_ID_GREENASIA_DUAL_SAT_ADAPTOR), HID_QUIRK_MULTI_INPUT }, { HID_USB_DEVICE(USB_VENDOR_ID_GREENASIA, USB_DEVICE_ID_GREENASIA_DUAL_USB_JOYPAD), HID_QUIRK_MULTI_INPUT }, + { HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_GAMEVICE, USB_DEVICE_ID_GAMEVICE_GV186), + HID_QUIRK_INCREMENT_USAGE_ON_DUPLICATE }, + { HID_USB_DEVICE(USB_VENDOR_ID_GAMEVICE, USB_DEVICE_ID_GAMEVICE_KISHI), + HID_QUIRK_INCREMENT_USAGE_ON_DUPLICATE }, { HID_USB_DEVICE(USB_VENDOR_ID_HAPP, USB_DEVICE_ID_UGCI_DRIVING), HID_QUIRK_BADPAD | HID_QUIRK_MULTI_INPUT }, { HID_USB_DEVICE(USB_VENDOR_ID_HAPP, USB_DEVICE_ID_UGCI_FIGHTING), HID_QUIRK_BADPAD | HID_QUIRK_MULTI_INPUT }, { HID_USB_DEVICE(USB_VENDOR_ID_HAPP, USB_DEVICE_ID_UGCI_FLYING), HID_QUIRK_BADPAD | HID_QUIRK_MULTI_INPUT }, -- 2.27.0