Skip to contentSkip to conversation

platform/chrome: chromeos_laptop: fix touchpad button mapping on Celes

PATCH In review Dmitry Torokhov 2 participants 2 messages May 29, 2018 Chrome hardware platform support

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 platform/chrome: chromeos_laptop: fix touchpad button mapping on Celes

Celes has newer touch controller (compared to the controllers used in older BayTrail-based devices) and so uses the same button mapping as Samus.

This fixes the issue with mouse button being stuck in pressed state after the first click.

---
 drivers/platform/chrome/chromeos_laptop.c | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)
drivers/platform/chrome/chromeos_laptop.c +9 -1
index 3cecf7933f751..24326eecd7876 100644
@@ -620,10 +620,18 @@ static const struct dmi_system_id chromeos_laptop_dmi_table[] __initconst = {
 		},
 		.driver_data = (void *)&samus,
 	},
+	{
+		.ident = "Samsung Chromebook 3",
+		.matches = {
+			DMI_MATCH(DMI_SYS_VENDOR, "GOOGLE"),
+			DMI_MATCH(DMI_PRODUCT_NAME, "Celes"),
+		},
+		.driver_data = (void *)&samus,
+	},
 	{
 		/*
 		 * Other Chromebooks with Atmel touch controllers:
-		 * - Celes, Winky (touchpad)
+		 * - Winky (touchpad)
 		 * - Clapper, Expresso, Rambi, Glimmer (touchscreen)
 		 */
 		.ident = "Other Chromebook",
Signature · 5 lines
2.17.0.921.gf22659ad46-goog


-- 
Dmitry
#1 lore raw

Hi Dmitry, Hi Sultan,

Quoted 9 lines · Dmitry Torokhov

Celes has newer touch controller (compared to the controllers used in older BayTrail-based devices) and so uses the same button mapping as Samus.

This fixes the issue with mouse button being stuck in pressed state after the first click.

Applied for v4.18. Thanks.

Signature · 7 lines
Benson Leung
Staff Software Engineer
Chrome OS Kernel
Google Inc.
[email protected]
Chromium OS Project
[email protected]