Received: by 2002:a17:90a:9103:0:0:0:0 with SMTP id k3csp11786853pjo; Thu, 2 Jan 2020 14:16:14 -0800 (PST) X-Google-Smtp-Source: APXvYqzVnCkjjQ/ywIptOfCrMtsr6/sEw3rNoLZUB8iCrzrQzAvwhJ6mT4b+C8xp/qweYjq5I/c/ X-Received: by 2002:a9d:66c1:: with SMTP id t1mr86514978otm.73.1578003374797; Thu, 02 Jan 2020 14:16:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578003374; cv=none; d=google.com; s=arc-20160816; b=Y6Jb5rHiEppfMGrM9WbGDkMkq7zsBtbnjYUHZpuCoRLI/QeI+TyyGfPp3/H8PJK5b9 BsHM124ULfPLLXHhCG1qrjAPlT8jfK5A68nQJvpuyG49My3L3sNcTmbC7zE3M9tcEf1W 4dG/fffESTEvwEvr+FakWR3MwG6YDEtxhCWWM2LaK6p76WwqrJtmAwsRaEsMKjDYVXDy dxYbs4pcoa6f14E+e5ayZURJY0Iyguc0MLanGYck6vwxws0xfC1Jia85OZNCoWheC1gQ wUn95aOUNoz3aKuFn5TQTuoNFS00x/iH2Qn6JKwUAOUtEGhDH/Zn/zGJvbhfC5L6km4Z oPtQ== 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=qwVIj8Dn0DBiaGbAvqrTtRagwwP63RUZgzn5BEqPxQI=; b=VxvQe+8N2++2tpMC0Q8QaDFvRgprP84Dge/JVLKWOLoaLKVmP+bk8gDcvrtgHG8/y4 nQgq4vekhwuZ333Aqhg8RJrbcdtmCKCm6bXdvVd7Q91SMlixYpKrcuXkIxP3pDdxA3zw HMjjEryBfYxwo/9g6kt09iHcjahO+mRGQBbla0wvSWOjJDSA4qRK0bQpD7UmYyEHxdO+ LK87sNFXe8CeCUliH/yAJiVe+sXoQx1/3EpHgSOqhEa5OraxgtgZ5IeCWBUxQ0gYH8Hd W2k+uhUiMezRgQdk4wJpZGWZoNwH85ERZL0buz46AUMPKSnzj3MazO7UL2opLapuLjo7 oOCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=dp8G+Jf0; 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 e3si30872231otp.286.2020.01.02.14.16.02; Thu, 02 Jan 2020 14:16:14 -0800 (PST) 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=dp8G+Jf0; 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 S1727456AbgABWN5 (ORCPT + 99 others); Thu, 2 Jan 2020 17:13:57 -0500 Received: from mail.kernel.org ([198.145.29.99]:53964 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727791AbgABWNx (ORCPT ); Thu, 2 Jan 2020 17:13:53 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (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 F12DE21D7D; Thu, 2 Jan 2020 22:13:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1578003232; bh=IfML4e4Pge9lYgrZC+B6wORjvCiP6UI5i+2DhqWoIgE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dp8G+Jf0c/YKYa15bCxvc2jJAkr5UgGL6G/qP/IEsspk24ll6A6+ulhc241sI4aw1 Xh+ByK6GxagBSZSKFKMyuM621vJxsBiL8fg84fTLKghBpc1+eD1O44kt1OTMo1Kaph 8rXtesQWqfYZpaoZmxHpE7FvYzVFyXKn/KtkLG9I= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jinke Fan , Jiri Kosina , Sasha Levin Subject: [PATCH 5.4 075/191] HID: quirks: Add quirk for HP MSU1465 PIXART OEM mouse Date: Thu, 2 Jan 2020 23:05:57 +0100 Message-Id: <20200102215837.978064481@linuxfoundation.org> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200102215829.911231638@linuxfoundation.org> References: <20200102215829.911231638@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: Jinke Fan [ Upstream commit f1a0094cbbe97a5f8aca7bdc64bfe43ac9dc6879 ] The PixArt OEM mouse disconnets/reconnects every minute on Linux. All contents of dmesg are repetitive: [ 1465.810014] usb 1-2.2: USB disconnect, device number 20 [ 1467.431509] usb 1-2.2: new low-speed USB device number 21 using xhci_hcd [ 1467.654982] usb 1-2.2: New USB device found, idVendor=03f0,idProduct=1f4a, bcdDevice= 1.00 [ 1467.654985] usb 1-2.2: New USB device strings: Mfr=1, Product=2,SerialNumber=0 [ 1467.654987] usb 1-2.2: Product: HP USB Optical Mouse [ 1467.654988] usb 1-2.2: Manufacturer: PixArt [ 1467.699722] input: PixArt HP USB Optical Mouse as /devices/pci0000:00/0000:00:07.1/0000:05:00.3/usb1/1-2/1-2.2/1-2.2:1.0/0003:03F0:1F4A.0012/input/input19 [ 1467.700124] hid-generic 0003:03F0:1F4A.0012: input,hidraw0: USB HID v1.11 Mouse [PixArt HP USB Optical Mouse] on usb-0000:05:00.3-2.2/input0 So add HID_QUIRK_ALWAYS_POLL for this one as well. Test the patch, the mouse is no longer disconnected and there are no duplicate logs in dmesg. Reference: https://github.com/sriemer/fix-linux-mouse Signed-off-by: Jinke Fan 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 447e8db21174..00904537e17c 100644 --- a/drivers/hid/hid-ids.h +++ b/drivers/hid/hid-ids.h @@ -573,6 +573,7 @@ #define USB_PRODUCT_ID_HP_PIXART_OEM_USB_OPTICAL_MOUSE_094A 0x094a #define USB_PRODUCT_ID_HP_PIXART_OEM_USB_OPTICAL_MOUSE_0941 0x0941 #define USB_PRODUCT_ID_HP_PIXART_OEM_USB_OPTICAL_MOUSE_0641 0x0641 +#define USB_PRODUCT_ID_HP_PIXART_OEM_USB_OPTICAL_MOUSE_1f4a 0x1f4a #define USB_VENDOR_ID_HUION 0x256c #define USB_DEVICE_ID_HUION_TABLET 0x006e diff --git a/drivers/hid/hid-quirks.c b/drivers/hid/hid-quirks.c index c50bcd967d99..9a35af1e2662 100644 --- a/drivers/hid/hid-quirks.c +++ b/drivers/hid/hid-quirks.c @@ -94,6 +94,7 @@ static const struct hid_device_id hid_quirks[] = { { HID_USB_DEVICE(USB_VENDOR_ID_HP, USB_PRODUCT_ID_HP_PIXART_OEM_USB_OPTICAL_MOUSE_094A), HID_QUIRK_ALWAYS_POLL }, { HID_USB_DEVICE(USB_VENDOR_ID_HP, USB_PRODUCT_ID_HP_PIXART_OEM_USB_OPTICAL_MOUSE_0941), HID_QUIRK_ALWAYS_POLL }, { HID_USB_DEVICE(USB_VENDOR_ID_HP, USB_PRODUCT_ID_HP_PIXART_OEM_USB_OPTICAL_MOUSE_0641), HID_QUIRK_ALWAYS_POLL }, + { HID_USB_DEVICE(USB_VENDOR_ID_HP, USB_PRODUCT_ID_HP_PIXART_OEM_USB_OPTICAL_MOUSE_1f4a), HID_QUIRK_ALWAYS_POLL }, { HID_USB_DEVICE(USB_VENDOR_ID_IDEACOM, USB_DEVICE_ID_IDEACOM_IDC6680), HID_QUIRK_MULTI_INPUT }, { HID_USB_DEVICE(USB_VENDOR_ID_INNOMEDIA, USB_DEVICE_ID_INNEX_GENESIS_ATARI), HID_QUIRK_MULTI_INPUT }, { HID_USB_DEVICE(USB_VENDOR_ID_KYE, USB_DEVICE_ID_KYE_EASYPEN_M610X), HID_QUIRK_MULTI_INPUT }, -- 2.20.1