From patchwork Mon Oct 7 04:08:03 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: WangYuli X-Patchwork-Id: 13824042 X-Patchwork-Delegate: jikos@jikos.cz Received: from bg5.exmail.qq.com (bg5.exmail.qq.com [43.155.80.173]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 54D1F3C2F; Mon, 7 Oct 2024 04:10:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=43.155.80.173 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728274262; cv=none; b=KyKONs/o1nCBnOmXd6RzpIXpAbhshflvLCexRl52QwJRq61xuJ8c6ZX3ytjlK3FwIu7+vBEAKbo17gKIQFYWgLimnwxWp9SnPiwRNGoED89L2Wfcm9SOirteHpjZ8n0mPXdGcIHImAZAUhqQ0n3RXAw3Lx/xJmLQo+zyeuH4WPk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728274262; c=relaxed/simple; bh=kdLJV4jPMQR0YmUaJahbxYPtDAXEVTC0gnJSvEmyKKg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=KqvDDUx25fvcVvlCeDKy2L2GhmbIbbIgjYmDrnHD+Jh6sc4+jNPgTk5di2k5iCldHGgGMb+Ru8YmfP/kn/2oRNTWTCDTsHttc963kAkGR1OcudYoUg6BUj7HiVpgEqfZBUCki1/agWCL234unm/OR7i8ZnWIX4gij8jUDqhnp0E= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=uniontech.com; spf=pass smtp.mailfrom=uniontech.com; dkim=pass (1024-bit key) header.d=uniontech.com header.i=@uniontech.com header.b=SDrzGfJB; arc=none smtp.client-ip=43.155.80.173 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=uniontech.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=uniontech.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=uniontech.com header.i=@uniontech.com header.b="SDrzGfJB" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=uniontech.com; s=onoh2408; t=1728274231; bh=f0bfXAMgZ1bZqb171JWN9isr0dbCdWyTuujwC2isf/Y=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=SDrzGfJB9a9TteO+0vN6wc1gsq+KwlNuwCquePuLe77DhIKyP1qGi0UlgRpAr4BgH /A2LGY2NvQqkn+FNgG80OweBd9zvn1361vdUEnbhQq9K9yvimfeG3pe1zGZuh0AKS4 BnnDhTJcWPnGpcWEHPNqHS5J4dILLdY+WHrEjmLM= X-QQ-mid: bizesmtp81t1728274088t8y7z34a X-QQ-Originating-IP: B9rIpp4W0xjv5XTsydH0Wq8+HdW6PE0Ed6KNpJrNxWI= Received: from localhost.localdomain ( [113.57.152.160]) by bizesmtp.qq.com (ESMTP) with id ; Mon, 07 Oct 2024 12:08:06 +0800 (CST) X-QQ-SSF: 0000000000000000000000000000000 X-QQ-GoodBg: 1 X-BIZMAIL-ID: 2877473253527766312 From: WangYuli To: jikos@kernel.org, bentiss@kernel.org, guanwentao@uniontech.com Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, zhanjun@uniontech.com, WangYuli Subject: [PATCH v2] HID: multitouch: Add quirk for HONOR MagicBook Art 14 touchpad Date: Mon, 7 Oct 2024 12:08:03 +0800 Message-ID: <43824FB10AAAE5DD+20241007040803.205047-1-wangyuli@uniontech.com> X-Mailer: git-send-email 2.45.2 Precedence: bulk X-Mailing-List: linux-input@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:uniontech.com:qybglogicsvrgz:qybglogicsvrgz8a-1 X-QQ-X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/T8w= X-QQ-RECHKSPAM: 0 It sometimes after reboot change output from Touchpad to Mouse, evtest show it output from "TOPS0102:00 35CC:0104 Touchpad" to "TOPS0102:00 35CC:0104 Mouse",and it works as A mouse. Like GLO-GXXX, as a workaround, it is possible to call MT_QUIRK_FORCE_GET_FEATURE to force set feature in mt_set_input_mode for such special touchpad device. Link: https://gitlab.freedesktop.org/libinput/libinput/-/issues/1040 Signed-off-by: Wentao Guan Signed-off-by: WangYuli Reviewed-by: Benjamin Tissoires --- drivers/hid/hid-multitouch.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/hid/hid-multitouch.c b/drivers/hid/hid-multitouch.c index 99812c0f830b..a1e0c3db3d4c 100644 --- a/drivers/hid/hid-multitouch.c +++ b/drivers/hid/hid-multitouch.c @@ -2082,6 +2082,11 @@ static const struct hid_device_id mt_devices[] = { HID_DEVICE(BUS_I2C, HID_GROUP_MULTITOUCH_WIN_8, 0x347d, 0x7853) }, + /* HONOR MagicBook Art 14 touchpad */ + { .driver_data = MT_CLS_VTL, + HID_DEVICE(BUS_I2C, HID_GROUP_MULTITOUCH_WIN_8, + 0x35cc, 0x0104) }, + /* Ilitek dual touch panel */ { .driver_data = MT_CLS_NSMU, MT_USB_DEVICE(USB_VENDOR_ID_ILITEK,