Received: by 2002:a25:5b86:0:0:0:0:0 with SMTP id p128csp2085854ybb; Fri, 29 Mar 2019 18:42:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqzd/uO/EhzaxYeUEiZTWXWf6Gdrj2iLMy3QulqJNcIrP5b+X+eSsgLMlqZsvB5VyExfaAcE X-Received: by 2002:a17:902:9a09:: with SMTP id v9mr51053274plp.225.1553910127726; Fri, 29 Mar 2019 18:42:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553910127; cv=none; d=google.com; s=arc-20160816; b=xwGqFsq79F3Tcv381tWEmPzUuQMQ3VeSpL7+WBdwnfhRUgRh2bqB0TBXM30zPZFu02 SeqMfbM0UUPng0/f8MrZBpee/sR9W2qSdvpMKjQaujRAPF21ztEKuQU3YhA5hh1gUXK1 7cdl4rNU4Kcf2hk0PTklZ67fps+ryj8MTgLL4S8uBFI049Ls4heQA+3DDGvLLkYKB4LN WpRkEaEe2Py66y+GiRbu7889sngIgosC8jHnnk3uVRNSgCqB+Ut0INAje20lQqXSIS3J 2owJQQs3k4BSaPzxsTt7+FSnD382AyPcr42qlBxOyF4uLmhAQE/YHmFKKG/muzvn1Gjx G20A== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Pi8KV+FmtznFimDETFSLWGF0yF+J1O/ghW1n/ZXTtOQ=; b=bln+U4KAo2myTfoXR0n45rKddtDaZqWK2+2q6iRoDs24DBhXfHysloilBQ4iiuCTQD T73U9xvJnBDjh0xLCfcFsYkxUMdGabGo+dipzGAaOu8PFNPPfJHTyfO8k12EnRVuXYs+ QeenDNfOwyTqLRSiom6SplVZSFKCpwx3LFyYXHeR/o0Bb/H/qaP21uk68Tl/0PeLejwL HsKe/oHjh7llVSyGcvdhyrOZTDk2dA6cOzvDZ6CJRfws1D1xRQHY4+KPhaid1+tjrgI6 BUjXue2G/O2p2fvxeSy3aMYZnnfbjxoHqQTjwkgyg7y2JNgjVss04OG2wO4kvUrDaK0D bF0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=JAMWho1V; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 12si3235570pgu.111.2019.03.29.18.41.52; Fri, 29 Mar 2019 18:42:07 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=JAMWho1V; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731081AbfC3B3h (ORCPT + 99 others); Fri, 29 Mar 2019 21:29:37 -0400 Received: from mail.kernel.org ([198.145.29.99]:36456 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731033AbfC3B3f (ORCPT ); Fri, 29 Mar 2019 21:29:35 -0400 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id A63D5218D9; Sat, 30 Mar 2019 01:29:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1553909374; bh=rBxZkjukOLFjsKQLOILGKnvVuhN5XKBDLNS6LwUvXSU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JAMWho1Vuka3EaSFIoSg3eE505RK7hX2qOlZlm6nFhrWSOWYPp18iYcj9i1v+F2nS zmo+1pD43ftUVpV30dXBHaRB6AAhRQizZgLOHM3PMOVAABuukMqisp+X1UGdds9loh P+eRUDY0u7TEhyEmyldzbiYn7qGEchFxkPr174QQ= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Kai-Heng Feng , Jiri Kosina , Sasha Levin , linux-input@vger.kernel.org Subject: [PATCH AUTOSEL 4.19 19/57] HID: usbhid: Add quirk for Redragon/Dragonrise Seymur 2 Date: Fri, 29 Mar 2019 21:28:12 -0400 Message-Id: <20190330012854.32212-19-sashal@kernel.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20190330012854.32212-1-sashal@kernel.org> References: <20190330012854.32212-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Kai-Heng Feng [ Upstream commit ce9d58d3eafcb2d452a69bdcc1c5f8b8ff640de5 ] Redragon Seymur 2 stops working since commit 190d7f02ce8e ("HID: input: do not increment usages when a duplicate is found"). Use quirk HID_QUIRK_INCREMENT_USAGE_ON_DUPLICATE suggested by the commit can solve the issue. Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=200995 BugLink: https://bugs.launchpad.net/bugs/1793846 Signed-off-by: Kai-Heng Feng Reviewed-by: Benjamin Tissoires Signed-off-by: Jiri Kosina Signed-off-by: Sasha Levin --- drivers/hid/hid-ids.h | 1 + drivers/hid/hid-quirks.c | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/hid/hid-ids.h b/drivers/hid/hid-ids.h index b7870e7e41d4..97d33b8ed36c 100644 --- a/drivers/hid/hid-ids.h +++ b/drivers/hid/hid-ids.h @@ -348,6 +348,7 @@ #define USB_DEVICE_ID_DMI_ENC 0x5fab #define USB_VENDOR_ID_DRAGONRISE 0x0079 +#define USB_DEVICE_ID_REDRAGON_SEYMUR2 0x0006 #define USB_DEVICE_ID_DRAGONRISE_WIIU 0x1800 #define USB_DEVICE_ID_DRAGONRISE_PS3 0x1801 #define USB_DEVICE_ID_DRAGONRISE_DOLPHINBAR 0x1803 diff --git a/drivers/hid/hid-quirks.c b/drivers/hid/hid-quirks.c index 77316f022c5a..94088c0ed68a 100644 --- a/drivers/hid/hid-quirks.c +++ b/drivers/hid/hid-quirks.c @@ -70,6 +70,7 @@ static const struct hid_device_id hid_quirks[] = { { HID_USB_DEVICE(USB_VENDOR_ID_DMI, USB_DEVICE_ID_DMI_ENC), HID_QUIRK_NOGET }, { HID_USB_DEVICE(USB_VENDOR_ID_DRACAL_RAPHNET, USB_DEVICE_ID_RAPHNET_2NES2SNES), HID_QUIRK_MULTI_INPUT }, { HID_USB_DEVICE(USB_VENDOR_ID_DRACAL_RAPHNET, USB_DEVICE_ID_RAPHNET_4NES4SNES), HID_QUIRK_MULTI_INPUT }, + { HID_USB_DEVICE(USB_VENDOR_ID_DRAGONRISE, USB_DEVICE_ID_REDRAGON_SEYMUR2), HID_QUIRK_INCREMENT_USAGE_ON_DUPLICATE }, { HID_USB_DEVICE(USB_VENDOR_ID_DRAGONRISE, USB_DEVICE_ID_DRAGONRISE_DOLPHINBAR), HID_QUIRK_MULTI_INPUT }, { HID_USB_DEVICE(USB_VENDOR_ID_DRAGONRISE, USB_DEVICE_ID_DRAGONRISE_GAMECUBE1), HID_QUIRK_MULTI_INPUT }, { HID_USB_DEVICE(USB_VENDOR_ID_DRAGONRISE, USB_DEVICE_ID_DRAGONRISE_PS3), HID_QUIRK_MULTI_INPUT }, -- 2.19.1