From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 92F8D29A9; Fri, 15 Nov 2024 06:46:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731653168; cv=none; b=sh1euTUh5KlU5LR1SCeECV6dAQ+LyqfGwGW+uQ1SYdgbIJ7sz9TTF57gyEWDbQGeQf4zKAxDZ63HtuxxmP7dk5BbRj4rKAcZJ3m7udVB3sLLyq6EyZoJNHxZ3TorKfyqxa89TFrvT/Zc+BOICvHw+KPHdZ3Jn5bYA1WGf+iLXfs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731653168; c=relaxed/simple; bh=M8Q6BA/DErZrlcA0jzhzVcIvMwCcRLzLufi8SdG+WkM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=dem9W+fVDlFN4CQYxN+66g4nNMCWV0g1R+Lw2VD05bslseVCMsnHzhL4QaI/wKN45zgul7FtZH3YE17dO9rb//p5kRIkNeDx8uh19P2FLG95iM7Dhd4kKCSzyEiMD6sfPZ+h98CkbAFkxskZUWgz8xAVc9BBil7LzmEoRiBh1Gw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ABMoDqTJ; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="ABMoDqTJ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 056FBC4CECF; Fri, 15 Nov 2024 06:46:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1731653168; bh=M8Q6BA/DErZrlcA0jzhzVcIvMwCcRLzLufi8SdG+WkM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ABMoDqTJJzIEKjrwvDvpzXgCnYauGFgEASPZI8O/qsMX4ykZuwizkISOYUcz/JaUQ buC28PPtDnSTsljGSbFBci6uz08IooArS6cROQTBYCJmdeW3u9jB6t3TB4QoAVvf+n SUlAvt0mBt2J0iLPAACNdNSaEiC3RCDiiLJtqYi0= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Wentao Guan , WangYuli , Benjamin Tissoires , Jiri Kosina , Sasha Levin Subject: [PATCH 5.4 55/66] HID: multitouch: Add quirk for HONOR MagicBook Art 14 touchpad Date: Fri, 15 Nov 2024 07:38:04 +0100 Message-ID: <20241115063724.827953373@linuxfoundation.org> X-Mailer: git-send-email 2.47.0 In-Reply-To: <20241115063722.834793938@linuxfoundation.org> References: <20241115063722.834793938@linuxfoundation.org> User-Agent: quilt/0.67 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 5.4-stable review patch. If anyone has any objections, please let me know. ------------------ From: WangYuli [ Upstream commit 7a5ab8071114344f62a8b1e64ed3452a77257d76 ] The behavior of HONOR MagicBook Art 14 touchpad is not consistent after reboots, as sometimes it reports itself as a touchpad, and sometimes as a mouse. Similarly to GLO-GXXX it is possible to call MT_QUIRK_FORCE_GET_FEATURE as a workaround to force set feature in mt_set_input_mode() for such special touchpad device. [jkosina@suse.com: reword changelog a little bit] Link: https://gitlab.freedesktop.org/libinput/libinput/-/issues/1040 Signed-off-by: Wentao Guan Signed-off-by: WangYuli Reviewed-by: Benjamin Tissoires Signed-off-by: Jiri Kosina Signed-off-by: Sasha Levin --- 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 c3810e7140a55..5994e7d1b82d9 100644 --- a/drivers/hid/hid-multitouch.c +++ b/drivers/hid/hid-multitouch.c @@ -2008,6 +2008,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, -- 2.43.0