Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp1121097pxx; Tue, 27 Oct 2020 08:43:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxi7Dgk2DfkQEwCekRVXvJ0AT/pzLpDx55lWA0nPH6IJGGKzOV0GrTMMkIuzOqTopM7TqfO X-Received: by 2002:a17:906:26c2:: with SMTP id u2mr2863526ejc.529.1603813436346; Tue, 27 Oct 2020 08:43:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603813436; cv=none; d=google.com; s=arc-20160816; b=XmJDyKw0O0/bTseT6MZXSzGoZBK1VtRtDxXJh3UtpzVgn8T71x4WH9a7+uJMyEpX7+ PW9iyP1Hb09TZkPronJaUAJ0WsDWaT0vPaCzt2CP3rbo9Amp0FOOzYAuAm7vV+u9OWMe 7yr+9g46Xx3zW8mxREFcA4l889wSUNAQg1xkGubey2I1eFzFMfgvO32SaVzKR9psCwCC dgIJKywpfe4zzcJYrz4Mb1EwI4Hy5vJHSibKiOjLVzwz+mUMEghWRJNE/hSH/26z4eKQ pakyhXsq7eN0DDvGI5VXnjgprZpj23T2kKlJXkXf40XpvskAu5JbFAJZ6NLtqyojTheP QdMw== 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=A7uC5wAfNpcfTeL5PdsQFOuBmHdBo7M7LGGrB+x+x7o=; b=S19WY5cQyX+Xzhp1RovUAsGgTWXGHTW+q+v35Dz+1sEq4ZqDgDIEDr7c39vz+wT2CE y1ZKvCOvABo4dv5hx1v0czZqDA78JY1AEfbMwP1+Hbins5UIi97j0zcNgYj5EYFvQnDz T1KxgNjLhP8aQQDrWUNN0ydppz9YOswJcJucYR139mZeK6IoS2dlZj/uUgUAKy1Btu1H Dh6CbkVdvK/w4B9rpkGsLwg2pW/j3kVQ5dXw//68pS/C5QchJ+rYRAEk/A5bIcI4eoF2 H/Boq9puflS5rC8kwcYrLM1mfp9/ZwlCrQTavRoQsehccOztpxqKUCFBPN2SMP372t2g Ftvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=cMxq4GfW; 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=fail (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 n26si1226725edv.458.2020.10.27.08.43.22; Tue, 27 Oct 2020 08:43:56 -0700 (PDT) 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=@kernel.org header.s=default header.b=cMxq4GfW; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1764538AbgJ0Oq5 (ORCPT + 99 others); Tue, 27 Oct 2020 10:46:57 -0400 Received: from mail.kernel.org ([198.145.29.99]:46806 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1764475AbgJ0Oqy (ORCPT ); Tue, 27 Oct 2020 10:46:54 -0400 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 1FD2C2222C; Tue, 27 Oct 2020 14:46:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603810012; bh=mzKnN9/77JyM4zThwiss97RjQWHqBe2bRWXFQNB+de4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=cMxq4GfWGxZsr6QYa0AcsHj+dR+2ke51sDdrZ+LT1jHuZR91C6MdMp963Djei4hn+ 5q8r65XFLKEdr4IpTUtS3r0aHaACyqikwWpBWQoO7yIj3+LzSA71RlDyNd05aydClg LvR+mOpocWmIpL4YhznHi3Tgq1P6h5JJinUZPivs= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Hans de Goede , Jiri Kosina , Sasha Levin Subject: [PATCH 5.4 381/408] HID: ite: Add USB id match for Acer One S1003 keyboard dock Date: Tue, 27 Oct 2020 14:55:19 +0100 Message-Id: <20201027135512.678501747@linuxfoundation.org> X-Mailer: git-send-email 2.29.1 In-Reply-To: <20201027135455.027547757@linuxfoundation.org> References: <20201027135455.027547757@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: Hans de Goede [ Upstream commit 5bf2f2f331ad812c9b7eea6e14a3ea328acbffc0 ] The Acer One S1003 2-in-1 keyboard dock uses a Synaptics S910xx touchpad which is connected to an ITE 8910 USB keyboard controller chip. This keyboard has the same quirk for its rfkill / airplane mode hotkey as other keyboards with ITE keyboard chips, it only sends a single release event when pressed and released, it never sends a press event. This commit adds this keyboards USB id to the hid-ite id-table, fixing the rfkill key not working on this keyboard. Note that like for the Acer Aspire Switch 10 (SW5-012) the id-table entry matches on the HID_GROUP_GENERIC generic group so that hid-ite only binds to the keyboard interface and the mouse/touchpad interface is left untouched so that hid-multitouch can bind to it. Signed-off-by: Hans de Goede Signed-off-by: Jiri Kosina Signed-off-by: Sasha Levin --- drivers/hid/hid-ids.h | 1 + drivers/hid/hid-ite.c | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/drivers/hid/hid-ids.h b/drivers/hid/hid-ids.h index e03a4d794240c..7363d0b488bd8 100644 --- a/drivers/hid/hid-ids.h +++ b/drivers/hid/hid-ids.h @@ -1119,6 +1119,7 @@ #define USB_DEVICE_ID_SYNAPTICS_DELL_K12A 0x2819 #define USB_DEVICE_ID_SYNAPTICS_ACER_SWITCH5_012 0x2968 #define USB_DEVICE_ID_SYNAPTICS_TP_V103 0x5710 +#define USB_DEVICE_ID_SYNAPTICS_ACER_ONE_S1003 0x73f5 #define USB_DEVICE_ID_SYNAPTICS_ACER_SWITCH5 0x81a7 #define USB_VENDOR_ID_TEXAS_INSTRUMENTS 0x2047 diff --git a/drivers/hid/hid-ite.c b/drivers/hid/hid-ite.c index 6c55682c59740..044a93f3c1178 100644 --- a/drivers/hid/hid-ite.c +++ b/drivers/hid/hid-ite.c @@ -44,6 +44,10 @@ static const struct hid_device_id ite_devices[] = { { HID_DEVICE(BUS_USB, HID_GROUP_GENERIC, USB_VENDOR_ID_SYNAPTICS, USB_DEVICE_ID_SYNAPTICS_ACER_SWITCH5_012) }, + /* ITE8910 USB kbd ctlr, with Synaptics touchpad connected to it. */ + { HID_DEVICE(BUS_USB, HID_GROUP_GENERIC, + USB_VENDOR_ID_SYNAPTICS, + USB_DEVICE_ID_SYNAPTICS_ACER_ONE_S1003) }, { } }; MODULE_DEVICE_TABLE(hid, ite_devices); -- 2.25.1