Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp139108ybi; Sat, 29 Jun 2019 07:19:01 -0700 (PDT) X-Google-Smtp-Source: APXvYqwwbuxeMdYDGdggt3Pa6LvbewPb9wuEKd8mCtNVdzNGLsEpoy7vA/tcOOiQ7a+gEYttLIa/ X-Received: by 2002:a63:6089:: with SMTP id u131mr15233383pgb.314.1561817940995; Sat, 29 Jun 2019 07:19:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561817940; cv=none; d=google.com; s=arc-20160816; b=qW0LfvUiZrMgj9PQ084crBQMANJGwhNWr8lr3x06oyR2qqDdmCCpBUYyDUN24zLZWh s+cSFRg8bRIn96bP3Et0kEQy15HJxzFO1ERAyMS9Ur0giELGYHKwnUthnXwnlbnrrCTU g1D+PKhcWaoOkbmgWZFcoifqcowskfciRbsD4DzZKyShNnioe9RxCjaFeQ3rt8TniYQ+ T5pnXObi+fKUa7boxsXF1GXk3Uarscd6Db03fFmx2hxI8ABL7FYp10uiXAU0iXDjt7OI aA90fe9pXRyP2oZYzp0vZagAJfG+h1YL5C5KH/YObNuwpngrgFDgYwy1jWsRB3tryxwd 6XzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=TueofaNrt5ApDuSOVktMj9KHv4fYZr58pNUpGFN5EEg=; b=dem/PwhOay+qFxQ41LRww3e1kdghZpO9cv9kFOdTdnhv9gEdgqxAJ2dq8qZbx6iFN8 K3tkFntPeBUiHNRzYdJUayaaGR/nTN7qJj5K/oOpgXtllnH+Q8lbSeH0bwxgpAm4Vspp esdjmhXnb+nz73ZieLoFOvvqyxnp8bVcTT2lJsS7Of7SVl7OMLR/QZ6nstQKX3yknnA7 v4cTP1h2Ya5DlNkex6JQQVPV6sJfz8318rLWDTdSJnDTUo9luyNhmr5WSiUpXEwSidfM v7pDMEbcujvU3T80lNCz84d3Rr/FhbNYlly/uSRF7yuL/WviCvBOY0rgNlDBJQk71vcJ FJyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=K3c5PRK2; 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 k25si5185505pgb.36.2019.06.29.07.18.43; Sat, 29 Jun 2019 07:19: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=K3c5PRK2; 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 S1726860AbfF2OSj (ORCPT + 99 others); Sat, 29 Jun 2019 10:18:39 -0400 Received: from mail-pf1-f195.google.com ([209.85.210.195]:41803 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726770AbfF2OSj (ORCPT ); Sat, 29 Jun 2019 10:18:39 -0400 Received: by mail-pf1-f195.google.com with SMTP id m30so4364565pff.8; Sat, 29 Jun 2019 07:18:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=TueofaNrt5ApDuSOVktMj9KHv4fYZr58pNUpGFN5EEg=; b=K3c5PRK2DBwgX5OPGu3eaY3z29hUSjL5EER/VPUoZ+NV/sCZHsdUqHl1VY9gy9aCD4 A3xM6mm5WQ7IA9LN06mRuloytnBCEfdDOMzY/fwY5MlOAsCUgUen2A9ku/tgmQ3f80w2 9rKpDb8KtV+Bat2LOACJD1+UE8CN6Sb+vKz8pKgQV+lxLe2QVkXNaqV+qRTdMPlJSi3y 5wGnVIzgToKcb8eHjfFyxf1kjBVA5Fn+N1ift9cBiM00tQxFapcVfI85ePTkpHbtznfg ia6zwFc0+Q+aLCX+p7/9VfdW48BgSMVF+9XSeU3l/SgIleM5rWSwq6IJ6pvuCQqtwBiM 4D2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=TueofaNrt5ApDuSOVktMj9KHv4fYZr58pNUpGFN5EEg=; b=XKxzqhgF+2g8dcrgbi0fNtrwneduQkM5bXKd/6tcHMKpwU9MTNzj0a711lNZSdR2Tm 6c3PDGtvGyQZk1IP7HGlqGKStrpeT8Mn6FMH4a8fCBpUI+R9Ipig5DvDERa20eg7lfk6 /Q7oNWPGk1MOBnuFCMkD38eS3qYtf4OwCHKHZxwYLDZCGxGAfCuu4quRsCp3WGKTsRVN 7DKQl1O8vGixot/bq+8Dphgz4e7+GO12PVcnPfKL06JPSARSsp7dpDUBECWU9I6mxqM5 wvWWLYRCJxG8F9MMLq7qFaS8zsNzw+kEsXSDU8oGVQ8Ne/RxRm4WYedPrrUZkWT8YdKu NM8A== X-Gm-Message-State: APjAAAVk4gOR+sdnqrf9IRG2tPAFMBRhl4jCLUuzdCCralX87NLpsohI zNxxeMfS8SNOyeayJJc60N2hh4eUFzdsMfNmSDc= X-Received: by 2002:a63:c0e:: with SMTP id b14mr14713106pgl.4.1561817918572; Sat, 29 Jun 2019 07:18:38 -0700 (PDT) MIME-Version: 1.0 References: <20190620115056.4169-1-luzmaximilian@gmail.com> In-Reply-To: <20190620115056.4169-1-luzmaximilian@gmail.com> From: Andy Shevchenko Date: Sat, 29 Jun 2019 17:18:26 +0300 Message-ID: Subject: Re: [PATCH 0/2] Support for buttons on newer MS Surface devices To: Maximilian Luz Cc: Linux Kernel Mailing List , linux-input , Platform Driver , Dmitry Torokhov , Hans de Goede , Chen Yu , Darren Hart , Andy Shevchenko , Benjamin Tissoires Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 20, 2019 at 2:51 PM Maximilian Luz wrote: > > This series adds suport for power and volume buttons on 5th and 6th > generation Microsoft Surface devices. Specifically, it adds support for > the power-button on the Surface Laptop 1 and Laptop 2, as well as > support for power- and (on-device) volume-buttons on the Surface Pro 5 > (2017), Pro 6, and Book 2. > > These devices use the same MSHW0040 device as on the Surface Pro 4, > however, whereas the Pro 4 uses an ACPI notify handler, the newer > devices use GPIO interrupts to signal these events. > > The first patch of this series ensures that the surfacepro3_button > driver, used for MSHW0040 on the Pro 4, does not probe for the newer > devices. The second patch adapts soc_button_array to implement the > actual button support. > > I think the changes to soc_button_array in the second patch warrant a > thorough review. I've tried to make things a bit more generic to be able > to integrate arbitrary ACPI GPIO power-/volume-button devices more > easily, I'm not sure if there may be reasons against this. > > These patches have also been tested on various Surface devices via the > github.com/jakeday/linux-surface patchset. > Pushed to my review and testing queue, thanks! > Maximilian Luz (2): > platform: Fix device check for surfacepro3_button > input: soc_button_array for newer surface devices > > drivers/input/misc/soc_button_array.c | 134 ++++++++++++++++++++-- > drivers/platform/x86/surfacepro3_button.c | 38 ++++++ > 2 files changed, 160 insertions(+), 12 deletions(-) > > -- > 2.22.0 > -- With Best Regards, Andy Shevchenko