Received: by 2002:a17:90a:9307:0:0:0:0 with SMTP id p7csp3961053pjo; Tue, 3 Mar 2020 10:08:16 -0800 (PST) X-Google-Smtp-Source: ADFU+vtHWDs6RgsAz5Vm/MWCRIwTbP7TkSatNiBnJ9uEgDH4uQP9p4/FeaO423kcSl8Q/Ls72m2q X-Received: by 2002:a9d:6446:: with SMTP id m6mr4176767otl.122.1583258895649; Tue, 03 Mar 2020 10:08:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583258895; cv=none; d=google.com; s=arc-20160816; b=iBSqP3L+ZwnbRkS1P/BmLQSjCMwlvrCbQow7CADcLisQzdtzJu4Pzv0P6f/Z/rHT26 0YBvjzzsKXBQFKHJ29shHBUQ7Owt6c5R7D1g8RvcqiSig/DBPBYLFZSBo0geQZEjmtf+ NupSDbovkMo8aQ1RDbF0CaxPlAUC6QzOZ2Z+wreMada51bYIhCfsLZOcf5LNodryzU9z UcF8RAgt9yDSJJ5qz9qauKtJ+nRklpukJtEf1Ego37quU1KOTafbXIU7Va6aJPDCk63h g6TZapkhKCXvtxa4oP9e0Va/8CBkbCrlHOR9zRc+LqiseIA7tW+yZBVO+9VT+0UVXCyU 0CZQ== 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=SOrNn+RqsAtgAV1B0q53xE3bDKQZvvZlzZWSrnTeCAg=; b=J9MowsqpQrL+6dzWpCDa5aADpk+vKRsg252FFbPeWPPuYw89ZCn9mA6Uf7CLsd9ISK ByG5aXwniMtjkmpZYlJQhrrMjoCvsoO12PiFRI2qHv6Dmp+omQi+54bKJh3sh/H3goPp CAPgJjqN4dtBv/U36k7bvDsNo+Qd/bp06ZdfrucF4EABxgeoBK2+X2bk7mteaLugUL77 lVOJf3colswC5E5mOHEaJe9mm288pukQotVKYdLWqPaDis2k1vSgqCn+SsH7CYmJlJ1f PP5rRgQBc5GmbCIIYRPkUwfwRTwqNlGWLM6CuMML+0HKmj1xmkAz8EQiPJdPpdshPcQY qaGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=qbjnqB7B; 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 w7si8717911otm.256.2020.03.03.10.08.02; Tue, 03 Mar 2020 10:08:15 -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=qbjnqB7B; 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 S2388304AbgCCSHK (ORCPT + 99 others); Tue, 3 Mar 2020 13:07:10 -0500 Received: from mail.kernel.org ([198.145.29.99]:36668 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732653AbgCCRzO (ORCPT ); Tue, 3 Mar 2020 12:55:14 -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 F21C32072D; Tue, 3 Mar 2020 17:55:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1583258113; bh=t0ILfPI1THySAeKMScXdX+yW20YuVW1b/Uuz9HQq564=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=qbjnqB7BUQKm//bsTsZd7TLHiedMVNh8z+Wl3pSXRgoNQEEurRjAZLh4J+p9brjO6 cZ7y45YUfob0rKqYwWyrpvo/VLYrzTTFzO18cyJO5LofZFgv9nVuEUD6ev8Zj5eqtZ Vf7vyeIIb13jzOb1Ow04NiGdi+l3LXGcr77xEuzg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, =?UTF-8?q?Zden=C4=9Bk=20Rampas?= , Hans de Goede , Benjamin Tissoires Subject: [PATCH 5.4 076/152] HID: ite: Only bind to keyboard USB interface on Acer SW5-012 keyboard dock Date: Tue, 3 Mar 2020 18:42:54 +0100 Message-Id: <20200303174311.156521538@linuxfoundation.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200303174302.523080016@linuxfoundation.org> References: <20200303174302.523080016@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: Hans de Goede commit beae56192a2570578ae45050e73c5ff9254f63e6 upstream. Commit 8f18eca9ebc5 ("HID: ite: Add USB id match for Acer SW5-012 keyboard dock") added the USB id for the Acer SW5-012's keyboard dock to the hid-ite driver to fix the rfkill driver not working. Most keyboard docks with an ITE 8595 keyboard/touchpad controller have the "Wireless Radio Control" bits which need the special hid-ite driver on the second USB interface (the mouse interface) and their touchpad only supports mouse emulation, so using generic hid-input handling for anything but the "Wireless Radio Control" bits is fine. On these devices we simply bind to all USB interfaces. But unlike other ITE8595 using keyboard docks, the Acer Aspire Switch 10 (SW5-012)'s touchpad not only does mouse emulation it also supports HID-multitouch and all the keys including the "Wireless Radio Control" bits have been moved to the first USB interface (the keyboard intf). So we need hid-ite to handle the first (keyboard) USB interface and have it NOT bind to the second (mouse) USB interface so that that can be handled by hid-multitouch.c and we get proper multi-touch support. This commit changes the hid_device_id for the SW5-012 keyboard dock to only match on hid devices from the HID_GROUP_GENERIC group, this way hid-ite will not bind the the mouse/multi-touch interface which has HID_GROUP_MULTITOUCH_WIN_8 as group. This fixes the regression to mouse-emulation mode introduced by adding the keyboard dock USB id. Cc: stable@vger.kernel.org Fixes: 8f18eca9ebc5 ("HID: ite: Add USB id match for Acer SW5-012 keyboard dock") Reported-by: Zdeněk Rampas Signed-off-by: Hans de Goede Signed-off-by: Benjamin Tissoires Signed-off-by: Greg Kroah-Hartman --- drivers/hid/hid-ite.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) --- a/drivers/hid/hid-ite.c +++ b/drivers/hid/hid-ite.c @@ -41,8 +41,9 @@ static const struct hid_device_id ite_de { HID_USB_DEVICE(USB_VENDOR_ID_ITE, USB_DEVICE_ID_ITE8595) }, { HID_USB_DEVICE(USB_VENDOR_ID_258A, USB_DEVICE_ID_258A_6A88) }, /* ITE8595 USB kbd ctlr, with Synaptics touchpad connected to it. */ - { HID_USB_DEVICE(USB_VENDOR_ID_SYNAPTICS, - USB_DEVICE_ID_SYNAPTICS_ACER_SWITCH5_012) }, + { HID_DEVICE(BUS_USB, HID_GROUP_GENERIC, + USB_VENDOR_ID_SYNAPTICS, + USB_DEVICE_ID_SYNAPTICS_ACER_SWITCH5_012) }, { } }; MODULE_DEVICE_TABLE(hid, ite_devices);