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 4DB2127B328; Tue, 30 Sep 2025 15:16:50 +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=1759245410; cv=none; b=iULJiRDXJceS4K6HbNJT+ALekHks44bb+wjokY62VXLlNggdoNcaLH71130a6aklS9DscoOD8fEOmfR1JtK0cSG/97XPCpLbzg3UViVz+t2luq7hhMpak0uAEE2j45Vj5QqfpECdfqrErVIKbsQYZgg6q8WvHSKqfap3j3pmZ2Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759245410; c=relaxed/simple; bh=nnGQywPJarlwpFNQ5I8qur3M1IOW4SRvC7qskJD7hoE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=PYlDNtx4E3dDFdlaDUCi4ZbtzMDq0o+xNKnCxIi5WtmBf+uuvcaAZ+S8nZR/e5Bnd5oZQUguaSoHDCx3IZLZWO1vIj+uFR5i3W6YEiYv8j8n8/pw+Rf/HDhBtDFh2JYzKQEI/mES+UAmP414jKkjvbT0qvQ9P9v6OdojjeokrIw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=XnTZ0Sv3; 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="XnTZ0Sv3" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C0F36C4CEF0; Tue, 30 Sep 2025 15:16:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1759245410; bh=nnGQywPJarlwpFNQ5I8qur3M1IOW4SRvC7qskJD7hoE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XnTZ0Sv3Y9BgHhFUm9n55eDdANMW36CJ6viX9Xj3W3tnlM5i9w3wut6St9ThfaNdN 7V8zOcfr6Irti7s21lTDql7EzJnX02fw+YkYV26tc8zeii4VMIRPbDMNB3DGpmgi83 PnQvKHcypkzP82em0oUgX7rTDDuYjowcQKAMVL4E= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Benjamin Tissoires , Kerem Karabay , Aditya Garg , Jiri Kosina , Sasha Levin Subject: [PATCH 6.1 10/73] HID: multitouch: specify that Apple Touch Bar is direct Date: Tue, 30 Sep 2025 16:47:14 +0200 Message-ID: <20250930143820.987116031@linuxfoundation.org> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20250930143820.537407601@linuxfoundation.org> References: <20250930143820.537407601@linuxfoundation.org> User-Agent: quilt/0.69 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 6.1-stable review patch. If anyone has any objections, please let me know. ------------------ From: Kerem Karabay [ Upstream commit 45ca23c5ee8b2b3074377fecc92fa72aa595f7c9 ] Currently the driver determines the device type based on the application, but this value is not reliable on Apple Touch Bar, where the application is HID_DG_TOUCHPAD even though this device is direct, so add a quirk for the same. Acked-by: Benjamin Tissoires Signed-off-by: Kerem Karabay Co-developed-by: Aditya Garg Signed-off-by: Aditya Garg Signed-off-by: Jiri Kosina Signed-off-by: Sasha Levin --- drivers/hid/hid-multitouch.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/hid/hid-multitouch.c b/drivers/hid/hid-multitouch.c index 8e9f71e69dd8c..d8fee341c096e 100644 --- a/drivers/hid/hid-multitouch.c +++ b/drivers/hid/hid-multitouch.c @@ -1336,6 +1336,13 @@ static int mt_touch_input_configured(struct hid_device *hdev, if (td->serial_maybe) mt_post_parse_default_settings(td, app); + /* + * The application for Apple Touch Bars is HID_DG_TOUCHPAD, + * but these devices are direct. + */ + if (cls->quirks & MT_QUIRK_APPLE_TOUCHBAR) + app->mt_flags |= INPUT_MT_DIRECT; + if (cls->is_indirect) app->mt_flags |= INPUT_MT_POINTER; -- 2.51.0