Message ID | 20221219105521.73467-1-benjamin.tissoires@redhat.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:e747:0:0:0:0:0 with SMTP id c7csp2324574wrn; Mon, 19 Dec 2022 03:13:41 -0800 (PST) X-Google-Smtp-Source: AA0mqf61vGnXsBUMGM1eupEOo8fl420OrO+2jHOLxrzzV0COTSTyt1+CS/d8tHtBi9rFRb79b5XC X-Received: by 2002:a17:90a:195e:b0:219:813a:745 with SMTP id 30-20020a17090a195e00b00219813a0745mr43417266pjh.33.1671448420819; Mon, 19 Dec 2022 03:13:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671448420; cv=none; d=google.com; s=arc-20160816; b=g3vYnpe23uSMTgCqXJaMhtYO5UoDXRnxGXRbxpNrfbbCLkcN97kaR1MvsUhFCoUWEJ O7YBXAj3sQYCZI6xJtPiiaOFWLK1nHGztwEDaQsOeRJ+TQT8IvP4oYBmTMEpsqW4+T7n XYbBQrkxyJAa+e8N0CVMMEPYn2u5ns1TjvzKy1SU9x/Mj5Kg4sYoHD3sMBNU8hirkRtj YoVK173lc4PvVfHqGt1imWV6Le2tUtzSSmwHgDaXfQgK8IEkRBS8hydbrbVIxSfxmKdP rOjB3T/cGW4XbHwsgXJRu0ijLC8wMaaDtQgeAeXuBO0AzwY176sHx1ONkHOV2OA/5dpY j6fA== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=UXCJuotbswFr5kiRSvayPv0qeiwEbQ+N4sdM87j/Gfc=; b=bSUBHN33fGrPmNVkh2fUvgf3Mxubc4KJrs1V7CesvyHX50U/uBOui0dX+SY6H/ulyd Tlv5y/1H2p41DTJ/2KJ0UDV/4FNK8SnEZt9KrrWYMDq1QuJAMITvpiIEMCNzoEQ88y0m 9NOI+4hZAbrIBsk9mFWzQnKte/D3CQ+bqkJ3ZfGcneOjaiEjbEUQIg95nbaR/OaHQppm OqFTEWhik2JNIZJUUVrgZ/ZxH6C2oCJ3tiWZP+lKg51BoXlrB8tu7N5/xVXeUSGl9dVm swAqGEvChLf8wJWc4RH+uyFi6tIBtZlTeMgNKHCP5HXFuyXC/VkKYAYnofdYL7dEa38U ZiYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=eW6XZ2ZC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gb13-20020a17090b060d00b001fe1c9436b1si10231746pjb.86.2022.12.19.03.13.27; Mon, 19 Dec 2022 03:13:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=eW6XZ2ZC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231706AbiLSK4Y (ORCPT <rfc822;peekingduck44@gmail.com> + 99 others); Mon, 19 Dec 2022 05:56:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55032 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231197AbiLSK4Q (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 19 Dec 2022 05:56:16 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 177A7EE3B for <linux-kernel@vger.kernel.org>; Mon, 19 Dec 2022 02:55:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1671447332; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=UXCJuotbswFr5kiRSvayPv0qeiwEbQ+N4sdM87j/Gfc=; b=eW6XZ2ZCgtmx5+EhUsLx+fJHApybu0XZsdMJKfqDobHBRT8Ztvfm+LXcNEUwBE+ex3JbZB 99sTG70PMzHdSAs2TWQah3X6j1ICxFkpcmgckaGM1+HeRdxZXUjJ9j+zU4bsRSdC47mWAC 8U4DIMnth+Xs0mnMem8ErZXES3B3IC8= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-1-9a0Z9MxUMsibn0wOjk8oyw-1; Mon, 19 Dec 2022 05:55:28 -0500 X-MC-Unique: 9a0Z9MxUMsibn0wOjk8oyw-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 2FAF7100F93C; Mon, 19 Dec 2022 10:55:27 +0000 (UTC) Received: from plouf.redhat.com (unknown [10.39.195.17]) by smtp.corp.redhat.com (Postfix) with ESMTP id 32994112132E; Mon, 19 Dec 2022 10:55:26 +0000 (UTC) From: Benjamin Tissoires <benjamin.tissoires@redhat.com> To: Jiri Kosina <jikos@kernel.org> Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, Benjamin Tissoires <benjamin.tissoires@redhat.com>, stable@vger.kernel.org Subject: [PATCH] HID: multitouch: enable trackstick of Asus ExpertBook B2502 Date: Mon, 19 Dec 2022 11:55:21 +0100 Message-Id: <20221219105521.73467-1-benjamin.tissoires@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.1 on 10.11.54.3 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1752640698996575429?= X-GMAIL-MSGID: =?utf-8?q?1752640698996575429?= |
Series |
HID: multitouch: enable trackstick of Asus ExpertBook B2502
|
|
Commit Message
Benjamin Tissoires
Dec. 19, 2022, 10:55 a.m. UTC
This device has a trackstick that is sent through the same HID device
than the touchpad.
Unfortunately there are 2 mice attached to that device descriptor, with
the first one for the touchpad when the second is for the trackstick.
Force all devices to be exported.
Cc: stable@vger.kernel.org # 5.8+
Link: https://bugzilla.redhat.com/show_bug.cgi?id=2154204
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
---
drivers/hid/hid-multitouch.c | 6 ++++++
1 file changed, 6 insertions(+)
Comments
On Mon, Dec 19, 2022 at 11:55 AM Benjamin Tissoires <benjamin.tissoires@redhat.com> wrote: > > This device has a trackstick that is sent through the same HID device > than the touchpad. > Unfortunately there are 2 mice attached to that device descriptor, with > the first one for the touchpad when the second is for the trackstick. > > Force all devices to be exported. > > Cc: stable@vger.kernel.org # 5.8+ > Link: https://bugzilla.redhat.com/show_bug.cgi?id=2154204 > Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com> FTR, this patch was already taken through 4eab1c2fe06c98a4dff258dd64800b6986c101e9, so we can safely ditch it. Cheers, Benjamin > --- > drivers/hid/hid-multitouch.c | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/drivers/hid/hid-multitouch.c b/drivers/hid/hid-multitouch.c > index 91a4d3fc30e0..91ac72b32d45 100644 > --- a/drivers/hid/hid-multitouch.c > +++ b/drivers/hid/hid-multitouch.c > @@ -1860,6 +1860,12 @@ static const struct hid_device_id mt_devices[] = { > USB_VENDOR_ID_ASUSTEK, > USB_DEVICE_ID_ASUSTEK_T304_KEYBOARD) }, > > + /* Asus ExpertBook with trackstick */ > + { .driver_data = MT_CLS_WIN_8_FORCE_MULTI_INPUT, > + HID_DEVICE(BUS_I2C, HID_GROUP_MULTITOUCH_WIN_8, > + USB_VENDOR_ID_ELAN, > + 0x3148) }, > + > /* Atmel panels */ > { .driver_data = MT_CLS_SERIAL, > MT_USB_DEVICE(USB_VENDOR_ID_ATMEL, > -- > 2.38.1 >
diff --git a/drivers/hid/hid-multitouch.c b/drivers/hid/hid-multitouch.c index 91a4d3fc30e0..91ac72b32d45 100644 --- a/drivers/hid/hid-multitouch.c +++ b/drivers/hid/hid-multitouch.c @@ -1860,6 +1860,12 @@ static const struct hid_device_id mt_devices[] = { USB_VENDOR_ID_ASUSTEK, USB_DEVICE_ID_ASUSTEK_T304_KEYBOARD) }, + /* Asus ExpertBook with trackstick */ + { .driver_data = MT_CLS_WIN_8_FORCE_MULTI_INPUT, + HID_DEVICE(BUS_I2C, HID_GROUP_MULTITOUCH_WIN_8, + USB_VENDOR_ID_ELAN, + 0x3148) }, + /* Atmel panels */ { .driver_data = MT_CLS_SERIAL, MT_USB_DEVICE(USB_VENDOR_ID_ATMEL,