Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp133582iof; Sun, 5 Jun 2022 23:21:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx4AgXkXo0QMT+akK0TI52a+eF9vNO7iwXULcwixrLnDHTQTSvbrN76GwS5Ty1j5U5qcnUx X-Received: by 2002:a17:902:b949:b0:167:6548:2d93 with SMTP id h9-20020a170902b94900b0016765482d93mr9864939pls.131.1654496503378; Sun, 05 Jun 2022 23:21:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654496503; cv=none; d=google.com; s=arc-20160816; b=rQLgYtHizSQcvjuJN72TkpyMrkYlZf3d8SZ8WnVfAzoSQJ/SLpSkb/vF52kOJjUgfp +uBF793VetASJjRgPeZn5iccBwHKNH3mqOukp3Bo720ysUtJERivUgTZqLc9JGiUcxNG fxyM3al7K3YYRHKBVbiEeHEL4oT/T2JIBCh6tEjxXh+WCazHSAT6v9C/qdip7S/U2++t VoKbKYBjYaOP1s0lLFvxkqFk/qBOVCZDBfyYdSFfYd4gLnndoFzQiNJ/1Xm9JaOWPLQJ EBaFfD75UwZ5bwU9wCOctLmUnWbK9AgNiLO9aA3k5teVdatuYbtAZwbEhmwRnwu45osQ ZlJg== 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=GYp1thhGYX4rYC1PwRlSgn6xSu7oTZpO0pEzEVvtbO4=; b=zlHOVZ6EVYZ/hdW+cuj5I8GkWjP0DSgwS705mVHC+spHDXtyyVJX7gqzfYjxOjMTEp QLhf2ZRjZTjtKm6JN9soBn791eddQBV/ZcJ78iDMAjLvj9VicvhrXOXos+99KLEBJQDu 9ib3Bf+fxxxdL7MkcJug6YsOEHnMZP2A0AapgMDYMUeceaOFTmdcx+dUZGVnXLBRMZJJ vgUW8ZyN4poF//RpSPYS7e2gRf7GCs/+HGycgngm/+2AjGkdUQkgYj7tYHmSbF0c8DS/ alcXoH1FHl8W93uzwT793z20zCz5F2RgEOut+8OiAN0ie0V9I1VndQ95CywQww5dJAXI Tasw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ZBCZYn6e; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id p20-20020a170903249400b0016401138e2esi17471305plw.48.2022.06.05.23.21.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 Jun 2022 23:21:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ZBCZYn6e; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id BA4ACD31A9; Sun, 5 Jun 2022 22:01:19 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347148AbiFCSFk (ORCPT + 99 others); Fri, 3 Jun 2022 14:05:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45650 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346411AbiFCRvJ (ORCPT ); Fri, 3 Jun 2022 13:51:09 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E286B56C02; Fri, 3 Jun 2022 10:48:02 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id A6037B82419; Fri, 3 Jun 2022 17:48:01 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 030B8C385A9; Fri, 3 Jun 2022 17:47:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1654278480; bh=ZIcsYjUnDHt/ILT8b0MIPsTKDV+xT9yctyXLcf5DodE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZBCZYn6ePKNJV7xphVwby3jrQ25BoDRVaonMZft4pqCbFJd2HsaIm8mS5Z03ZasGm gSjm0G4qrfDUnQzVio4HV7baKLoD44SwjnB/fhnCgqoV8lI23r2CRJrGFfwiAHAems owaoJxvqLiMEBnWhcSRGs8o7DWXR0QP6eFCWdXRM= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Tao Jin , Benjamin Tissoires Subject: [PATCH 5.10 46/53] HID: multitouch: add quirks to enable Lenovo X12 trackpoint Date: Fri, 3 Jun 2022 19:43:31 +0200 Message-Id: <20220603173820.057457416@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220603173818.716010877@linuxfoundation.org> References: <20220603173818.716010877@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE 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: X-Mailing-List: linux-kernel@vger.kernel.org From: Tao Jin commit 95cd2cdc88c755dcd0a58b951faeb77742c733a4 upstream. This applies the similar quirks used by previous generation devices such as X1 tablet for X12 tablet, so that the trackpoint and buttons can work. This patch was applied and tested working on 5.17.1 . Cc: stable@vger.kernel.org # 5.8+ given that it relies on 40d5bb87377a Signed-off-by: Tao Jin Signed-off-by: Benjamin Tissoires Link: https://lore.kernel.org/r/CO6PR03MB6241CB276FCDC7F4CEDC34F6E1E29@CO6PR03MB6241.namprd03.prod.outlook.com Signed-off-by: Greg Kroah-Hartman --- drivers/hid/hid-ids.h | 1 + drivers/hid/hid-multitouch.c | 6 ++++++ 2 files changed, 7 insertions(+) --- a/drivers/hid/hid-ids.h +++ b/drivers/hid/hid-ids.h @@ -743,6 +743,7 @@ #define USB_DEVICE_ID_LENOVO_X1_COVER 0x6085 #define USB_DEVICE_ID_LENOVO_X1_TAB 0x60a3 #define USB_DEVICE_ID_LENOVO_X1_TAB3 0x60b5 +#define USB_DEVICE_ID_LENOVO_X12_TAB 0x60fe #define USB_DEVICE_ID_LENOVO_OPTICAL_USB_MOUSE_600E 0x600e #define USB_DEVICE_ID_LENOVO_PIXART_USB_MOUSE_608D 0x608d #define USB_DEVICE_ID_LENOVO_PIXART_USB_MOUSE_6019 0x6019 --- a/drivers/hid/hid-multitouch.c +++ b/drivers/hid/hid-multitouch.c @@ -1990,6 +1990,12 @@ static const struct hid_device_id mt_dev USB_VENDOR_ID_LENOVO, USB_DEVICE_ID_LENOVO_X1_TAB3) }, + /* Lenovo X12 TAB Gen 1 */ + { .driver_data = MT_CLS_WIN_8_FORCE_MULTI_INPUT, + HID_DEVICE(BUS_USB, HID_GROUP_MULTITOUCH_WIN_8, + USB_VENDOR_ID_LENOVO, + USB_DEVICE_ID_LENOVO_X12_TAB) }, + /* MosArt panels */ { .driver_data = MT_CLS_CONFIDENCE_MINUS_ONE, MT_USB_DEVICE(USB_VENDOR_ID_ASUS,