Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp3676445rwl; Tue, 27 Dec 2022 13:06:42 -0800 (PST) X-Google-Smtp-Source: AMrXdXttpWOFK4mgpziQ3HNEXtztgcurevKqqPkuN7mnAI4y/qnW2tVn6SlzvDFY8YFgywKwM7lG X-Received: by 2002:a17:902:704a:b0:191:7d3:7fdd with SMTP id h10-20020a170902704a00b0019107d37fddmr39781214plt.60.1672175202072; Tue, 27 Dec 2022 13:06:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672175202; cv=none; d=google.com; s=arc-20160816; b=q4+qwtK6Mkg9kycSsz+RYBnXiz3FvShsraTFTo58q/rpka97qoRNaTzMvgoFr/qbq1 rgeLO2WjsQ5YQG3j24N8rTn98WeNX5nNTm8f7OghTBUrkNUyvzON4nmgex3A3y2vc07e d2AFIJl2s7LDddg2s8Jlx54zyXves4CcTM0WObijTf8+o8X/XbA12Zz8ylfdlx3pTCX2 HQDelfNRq78XKq5Fuyhd9H93iaCwXifxSIUeeD3sCbSXeadXK1kmyEvNz1PXwRGH1Ovi C7e6bxnfyVSHrCgTqQYmw/Oiwt7zMSWZmRkIHLBFhSr9Iya15RREzJT0CvwcxyGKeGE/ KYmA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=agEzoagMIqq3mZlIcZHfU8kHsHXK/okiCwmyXYCxYro=; b=lq0Ct9QW2juhhHjt+DkKxEPXv23/hTl+dIDvK2OoOdnfVTIU7zhjh3iPFOJByg4A9t NzX6Tpm6S5fog0DeXcW4AdyRW0iMDV6CQw9Mi8g+O5Ayc+f4ivn1DSqgmaSneRlaFU4P LxrmZeDa2yuPxaQvT6BNTBX/ulnl8ycurru/1HYcRaOd/iAhvRCgDNCmSIyhWb4pL/jN rrbMQXlNFZUM3XAFXTTlARHye9wEdJIi1x75suwCU24dWrN53CUOnZ2dyHLJVFd6h0Tl hfzxwKENjXxGDNSHUnrWhmOoccZmHTi35FHYN98tEEWrceCgj9QVQ9FVZqrkouPWaAsA Ke7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=awjEeXOe; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p17-20020a170902f09100b00174c5fdc8d2si13508731pla.307.2022.12.27.13.06.33; Tue, 27 Dec 2022 13:06:42 -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=@kernel.org header.s=k20201202 header.b=awjEeXOe; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232795AbiL0Uml (ORCPT + 66 others); Tue, 27 Dec 2022 15:42:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49466 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232579AbiL0Ulp (ORCPT ); Tue, 27 Dec 2022 15:41:45 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3CD89EE1D; Tue, 27 Dec 2022 12:35:34 -0800 (PST) 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 dfw.source.kernel.org (Postfix) with ESMTPS id D27186123C; Tue, 27 Dec 2022 20:35:30 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 55DC9C433F2; Tue, 27 Dec 2022 20:35:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1672173330; bh=veC60ZZIxlv7xmN1vv6FVX95uUYCp0YvFsG6iTaE4ME=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=awjEeXOeh0FyLBHIl5F4nYlUCPJWVcupEU0DDdRN20HIiCqD9ZN7/1yF/koq+4+ic ZP7pMzlCrItjBhwTA+LxBSQLP2FbYUDF8rCN2xlvXO+PXjrLFBZx18EeeBVMLtaShv CPRMdr8k4p3orFsr3P3XLJEn86XxDck6HlqdADIJlsU95W1umE1av1lS5UKuZB8O9t XminZIobchrl1rAHEqGwVfmuOZIadsOKlCJ4mgP5hqvRr9DVfXYiXSteeYLQomRh43 pZH043IJOrzPlZz63Rz7g1PoV4ouUDOMC+no1aqoRVciLZjvJABXv3sz5HQG8sNvPt uajA33nwdS5Cw== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: =?UTF-8?q?Jos=C3=A9=20Exp=C3=B3sito?= , Akito , Jiri Kosina , Sasha Levin , jikos@kernel.org, benjamin.tissoires@redhat.com, linux-input@vger.kernel.org Subject: [PATCH AUTOSEL 5.10 6/7] HID: multitouch: fix Asus ExpertBook P2 P2451FA trackpoint Date: Tue, 27 Dec 2022 15:35:09 -0500 Message-Id: <20221227203512.1214527-6-sashal@kernel.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20221227203512.1214527-1-sashal@kernel.org> References: <20221227203512.1214527-1-sashal@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham 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: José Expósito [ Upstream commit 4eab1c2fe06c98a4dff258dd64800b6986c101e9 ] The HID descriptor of this device contains two mouse collections, one for mouse emulation and the other for the trackpoint. Both collections get merged and, because the first one defines X and Y, the movemenent events reported by the trackpoint collection are ignored. Set the MT_CLS_WIN_8_FORCE_MULTI_INPUT class for this device to be able to receive its reports. This fix is similar to/based on commit 40d5bb87377a ("HID: multitouch: enable multi-input as a quirk for some devices"). Link: https://gitlab.freedesktop.org/libinput/libinput/-/issues/825 Reported-by: Akito Tested-by: Akito Signed-off-by: José Expósito Signed-off-by: Jiri Kosina Signed-off-by: Sasha Levin --- drivers/hid/hid-multitouch.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/hid/hid-multitouch.c b/drivers/hid/hid-multitouch.c index a78ce16d4782..ea8c52f0aa78 100644 --- a/drivers/hid/hid-multitouch.c +++ b/drivers/hid/hid-multitouch.c @@ -1912,6 +1912,10 @@ static const struct hid_device_id mt_devices[] = { HID_DEVICE(BUS_I2C, HID_GROUP_MULTITOUCH_WIN_8, USB_VENDOR_ID_ELAN, 0x313a) }, + { .driver_data = MT_CLS_WIN_8_FORCE_MULTI_INPUT, + HID_DEVICE(BUS_I2C, HID_GROUP_MULTITOUCH_WIN_8, + USB_VENDOR_ID_ELAN, 0x3148) }, + /* Elitegroup panel */ { .driver_data = MT_CLS_SERIAL, MT_USB_DEVICE(USB_VENDOR_ID_ELITEGROUP, -- 2.35.1