Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp3712369imm; Tue, 29 May 2018 12:08:00 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrYni9RWwdOE74ja3K7bjthdNmi9T1hYwqsNqpR9HBfHDECeDEtR0KlTX0f/jWlFrV01mmS X-Received: by 2002:a17:902:54d:: with SMTP id 71-v6mr18820522plf.365.1527620880423; Tue, 29 May 2018 12:08:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527620880; cv=none; d=google.com; s=arc-20160816; b=SA0UqYywEQog/2pr7qkpO9cOfYmiWzHBd5/+PEXt+mgWaSjDTvGhxQgWdwan1a+D/7 KmyDIuLHtpbXwq8GZRj5zkEEEgWs9epgpMxHhhbDcAikS+E9Scb2agTsOXUjDN3aUE4Q lwt7NqRgr3oW7RGDc8UQhz1oCYxUbw54hCTX1Si7SvsT9kW7B9g+IDz71CvYXJ6qkBgd Llww0ayyyfAAtjfo+rBnkOkHhZFoBasGsQGq26q+wYifHfkvLQlLtBXsPoci1u6kc6mN /z67AA/nJs76qeo6UUPFsPvc8taceRAnjkQUOzWt4EDg+IQY6J6nXrA0ix2W2BijQvMM tKwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:cc:to:from:date:dkim-signature :arc-authentication-results; bh=TTLtC4X+YHgd6IVrK61KIPd/c/FbrxP5Xwhyqa6E9fc=; b=MvtFH2c+2V2XMDzxjktPflnt7ZyAPmINO+V8YspyGTysXui467AVXRwMsdNLTOW8aA BIZJMSAAfAxeR7x/LwM1Jb7lh/pvL4B2h4Vngwp/17UggxeB6m14+t2aKfGJ2okMhbjx STK9lU7oSutQdHhSMDYEPGmOqOWKT3INbuI5L0mE9tthlY6Jf6irLNxpGNPd12ukHETE uGdOS9NeARk+ytOpVCieTsq0E70061JYfEmNqAr7jHf6avg1BmkNWUtSQlF2B8MCxfqg 8DY7bfBMuOEP9YbnFKVKn856ydfUOjw5IYFxYMOAsUb3SMa03rzHQ2CRKHnyR8DqpCLa +bHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=pzw2MXp0; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d191-v6si7941808pga.192.2018.05.29.12.07.45; Tue, 29 May 2018 12:08:00 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=pzw2MXp0; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966325AbeE2THG (ORCPT + 99 others); Tue, 29 May 2018 15:07:06 -0400 Received: from mail-pl0-f67.google.com ([209.85.160.67]:43279 "EHLO mail-pl0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965311AbeE2THD (ORCPT ); Tue, 29 May 2018 15:07:03 -0400 Received: by mail-pl0-f67.google.com with SMTP id c41-v6so9475428plj.10 for ; Tue, 29 May 2018 12:07:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :user-agent; bh=TTLtC4X+YHgd6IVrK61KIPd/c/FbrxP5Xwhyqa6E9fc=; b=pzw2MXp0b7mQgtnhOE569Jk+dU2Px7M6iUPNo3l34CcoehukW5OqfmUddG2rQWG0Ea o90bRxCIT06jQG0DHlr+T3zTO62tdtHNuMpnFExyioczQzrNXQm3ALWUTJDHFNnq8wwe b1C5JnLRQht14RpXLrVUVQppUFmzq9KpT/5yhemcOCAV5oPuLbBgtv/JYEtSDfF7LFcU moXmIqUyY1+w+omZoRGnhg5Qbm3tQvtvJG0y/7UI3WMrbPDIm0lmOJWLEvZV6O1seQuu e23E1dlwJlS6cCZ2HFxv2RfAloBzW8JMKcKZ0EiN7/WRF2f57h/Lun849F9nQmq8SdtU a5RQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:user-agent; bh=TTLtC4X+YHgd6IVrK61KIPd/c/FbrxP5Xwhyqa6E9fc=; b=Urwl0O6R1CgNc4upvSZljuUYXNBFKsMv+y9//HuOKoD9wsP/EyqoHjLGZy/tJUajlu sKviD/6VwKKB8o7Hx9gIBe1cr2i8zhFdJyol0NqPiD7lR9Ko/PqVgpQcDP/G30B6Dk74 tSZ+LYV5sR+g1fJzRpPFY9ms9tOEbOVzZBO7lMvWhP+TAJBDG5NfpigJsia/6FzGml0i prbAjGiTHPfumZB+vfpZTOQXcT5z+nagaG9mDGhE3cRHKf7Bl3M8G1OSZUE/+0yrZduD HhrmoHctVl357SY5xorxj6QDGTlMLmscu4QQd2++Lw1JQlqRsQely/ch7vw64eHoW8+4 yBKw== X-Gm-Message-State: ALKqPwf3O1dhqOjXnCcAHwKHH9gbXj0tGLW0vufVBh1yDa2KENd37JSx y9V7vLIfCU5Pzgqm4j95iRU= X-Received: by 2002:a17:902:d706:: with SMTP id w6-v6mr18935453ply.142.1527620823220; Tue, 29 May 2018 12:07:03 -0700 (PDT) Received: from dtor-ws ([2620:0:1000:1511:8de6:27a8:ed13:2ef5]) by smtp.gmail.com with ESMTPSA id z28-v6sm18034694pfl.169.2018.05.29.12.07.01 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 29 May 2018 12:07:01 -0700 (PDT) Date: Tue, 29 May 2018 12:06:59 -0700 From: Dmitry Torokhov To: Benson Leung Cc: Sultan Alsawaf , linux-kernel@vger.kernel.org Subject: [PATCH] platform/chrome: chromeos_laptop: fix touchpad button mapping on Celes Message-ID: <20180529190659.GA261828@dtor-ws> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Reported-by: Sultan Alsawaf Signed-off-by: Dmitry Torokhov --- drivers/platform/chrome/chromeos_laptop.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/drivers/platform/chrome/chromeos_laptop.c b/drivers/platform/chrome/chromeos_laptop.c index 3cecf7933f751..24326eecd7876 100644 --- a/drivers/platform/chrome/chromeos_laptop.c +++ b/drivers/platform/chrome/chromeos_laptop.c @@ -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", -- 2.17.0.921.gf22659ad46-goog -- Dmitry