Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp1703115ybi; Wed, 17 Jul 2019 20:25:30 -0700 (PDT) X-Google-Smtp-Source: APXvYqw8gR3awdB9OQXoFaL34yKQA+D7RF4vJZIZhH+XiLLcxPLNbl+WQ9e/tMumgubajbmPM091 X-Received: by 2002:a17:90a:2008:: with SMTP id n8mr47669634pjc.4.1563420330706; Wed, 17 Jul 2019 20:25:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563420330; cv=none; d=google.com; s=arc-20160816; b=XQU/2ivjHmBra62796RP+loDco+WO9mpl58CXoZFfBg3KVqJpgZ2A+Km6ERq3QOxsa TbZURhSXFcp9QXGdc1WCiybxuInbGL9Yy9C64DdeqNSqa2KJ44r1UHUjbakpLxlzp6c1 g+GBPx0jSDizc3lSgtC1fV2+t0Iy4yTLBNtCGdw2wJIjGEaLKrpmUzhc2ZSaOliN4ol2 gSvKRNSn2d1F3gLhM2PCMPqQFb+RCHlQRS63Q7pAAWRvezP3BhlaqgtX9M0ACltb8p+z gL2M1ORV4Ee2fUUgF2uHkQ2bkQINVmhsKQ54tlXyfCfI4vZ3o5UMTYQfR4KGINAtupLv 3Ecg== 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=xa7uttwI0YMX75AEEpl+sjFxQMCYXigTqTwjHuo5LyU=; b=OM7Js9fkqEmih9n6tzH92lewu0s0klAxLPw+RRWuNmo8TWgULkYU5HQ4vuUgQeQFHk 397w9uu12PR2tIRSkqfL0ULEjZrFZXkVRzx0SwDWTplKVaPgQIbzYIcOGIvANt5QD+9P 46qwaeiWVmhpxc2Nk/IlQyCEtNOsge/oHvDRNcM257i/4cII+5xKyM+1bVbJWEXpwuZT WPIK8WBLq25EmTW4gST0VofaZ18k5c/4VRmeYKr+9ORNeSEjCtxcOq5oEI68+IFF2OAL mh7qPZmmEgoup/y+MFSCVUPlHwv2O93n7tCHEYTt0p8W9dECV0MEtcJqRg4ByovDVQme 5KDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=2mGNBRhp; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x21si903242pjt.37.2019.07.17.20.25.14; Wed, 17 Jul 2019 20:25:30 -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=2mGNBRhp; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390486AbfGRDYV (ORCPT + 99 others); Wed, 17 Jul 2019 23:24:21 -0400 Received: from mail.kernel.org ([198.145.29.99]:38788 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390392AbfGRDHQ (ORCPT ); Wed, 17 Jul 2019 23:07:16 -0400 Received: from localhost (115.42.148.210.bf.2iij.net [210.148.42.115]) (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 B761421848; Thu, 18 Jul 2019 03:07:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1563419236; bh=QtimvkZcCF2B8Rx5GfTjmAeAjMRsTeY95kFIvOrOTNg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=2mGNBRhp6co+KmDEASUdWyl/ffHP/u+y+WOUwGnexespovKgQbEKOArA/wcxn6TEF +Uax0FbfxtUbMfDZYgUT/gtOQrghsBctycQd7q0xrw1WbxJBxY/liGtDPQeLTthlAK dEKL/sdW/DHwNSsPIait6feXaDGWWECGqzdxax64= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Oleksandr Natalenko , Sebastian Parschauer , Jiri Kosina , Sasha Levin Subject: [PATCH 4.19 24/47] HID: chicony: add another quirk for PixArt mouse Date: Thu, 18 Jul 2019 12:01:38 +0900 Message-Id: <20190718030050.756536799@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190718030045.780672747@linuxfoundation.org> References: <20190718030045.780672747@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 [ Upstream commit dcf768b0ac868630e7bdb6f2f1c9fe72788012fa ] I've spotted another Chicony PixArt mouse in the wild, which requires HID_QUIRK_ALWAYS_POLL quirk, otherwise it disconnects each minute. USB ID of this device is 0x04f2:0x0939. We've introduced quirks like this for other models before, so lets add this mouse too. Link: https://github.com/sriemer/fix-linux-mouse#usb-mouse-disconnectsreconnects-every-minute-on-linux Signed-off-by: Oleksandr Natalenko Acked-by: Sebastian Parschauer 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 92452992b368..97b4ecab7c12 100644 --- a/drivers/hid/hid-ids.h +++ b/drivers/hid/hid-ids.h @@ -265,6 +265,7 @@ #define USB_DEVICE_ID_CHICONY_MULTI_TOUCH 0xb19d #define USB_DEVICE_ID_CHICONY_WIRELESS 0x0618 #define USB_DEVICE_ID_CHICONY_PIXART_USB_OPTICAL_MOUSE 0x1053 +#define USB_DEVICE_ID_CHICONY_PIXART_USB_OPTICAL_MOUSE2 0x0939 #define USB_DEVICE_ID_CHICONY_WIRELESS2 0x1123 #define USB_DEVICE_ID_ASUS_AK1D 0x1125 #define USB_DEVICE_ID_CHICONY_ACER_SWITCH12 0x1421 diff --git a/drivers/hid/hid-quirks.c b/drivers/hid/hid-quirks.c index 5892f1bd037e..91e86af44a04 100644 --- a/drivers/hid/hid-quirks.c +++ b/drivers/hid/hid-quirks.c @@ -45,6 +45,7 @@ static const struct hid_device_id hid_quirks[] = { { HID_USB_DEVICE(USB_VENDOR_ID_ATEN, USB_DEVICE_ID_ATEN_UC100KM), HID_QUIRK_NOGET }, { HID_USB_DEVICE(USB_VENDOR_ID_CHICONY, USB_DEVICE_ID_CHICONY_MULTI_TOUCH), HID_QUIRK_MULTI_INPUT }, { HID_USB_DEVICE(USB_VENDOR_ID_CHICONY, USB_DEVICE_ID_CHICONY_PIXART_USB_OPTICAL_MOUSE), HID_QUIRK_ALWAYS_POLL }, + { HID_USB_DEVICE(USB_VENDOR_ID_CHICONY, USB_DEVICE_ID_CHICONY_PIXART_USB_OPTICAL_MOUSE2), HID_QUIRK_ALWAYS_POLL }, { HID_USB_DEVICE(USB_VENDOR_ID_CHICONY, USB_DEVICE_ID_CHICONY_WIRELESS), HID_QUIRK_MULTI_INPUT }, { HID_USB_DEVICE(USB_VENDOR_ID_CHIC, USB_DEVICE_ID_CHIC_GAMEPAD), HID_QUIRK_BADPAD }, { HID_USB_DEVICE(USB_VENDOR_ID_CH, USB_DEVICE_ID_CH_3AXIS_5BUTTON_STICK), HID_QUIRK_NOGET }, -- 2.20.1