Received: by 10.223.185.116 with SMTP id b49csp4188314wrg; Tue, 13 Feb 2018 14:27:12 -0800 (PST) X-Google-Smtp-Source: AH8x225lAj3CPm0x0+jvx1Sj4BbgeTbp6JhokgIcPfveMrJDF7IAd1VimHAGPu/WsTUPGQnAt/uI X-Received: by 10.99.120.143 with SMTP id t137mr2160730pgc.79.1518560832550; Tue, 13 Feb 2018 14:27:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518560832; cv=none; d=google.com; s=arc-20160816; b=BIMEKeIRt7EAQo1uLkq11qecxB8dIOGD3a8dQja/RjueJDo5LcgtA131DoL43my36l UxNzVdjevSmtjwK0MOdFYzT69Q8DAAyS7yuxrYJjlqy+II51zKfXmlY/Brib+QEa3R0U wWqr2uiJ27rlpfd336TvWHitvpFnyjQkfutgsZwkKDFw5NT7WzFFD+7JcmSnHbEQwK/9 8obpBEOfS+uC3c98VcCsbSykIJ6ckasX6XEFMwcLh5o5iTCbO3Lh4u63/hz/D8b/YBK+ aQ1T465S7tMDA4/ifYP2Zq8GqGzJSyDTPR299jQltO8LlmjHeEk9lS+LKtzyqLtBqppT 3fUw== 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 :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=n9jO8saCzf4ACac2tKhBiL5ZatJkQpMZHjDn57rS3bY=; b=ozrQy7a8xEiUM4kKZTjHFJnnMX96P+Q5+f9AGDNzimm6MXUJ61K6MqJdQmiV7zMJtV 6xOSknyqw+WwE05DgyFTWfgg716CDSidwCvfo10GIHllvbJyxQPvotopeABKaYZhgdRt 94x3dYvo7a24WLt/eh2/TOIKxfgCW/0YNfSQ7SiSqFw0LErdM32keKXuHNwJyFVzT7ZO JASD64M9YjLbLvsZuCg9v/PC8WnuMWo49sYA+OJryric48zpvy0xjxAWJG6iJAFcSHzG 4fOuhGIi96iMOSB8t5g/bvlQHy2MPeE70T0TQjucivBut33q4sshDNMmFx/7Of+AEs/G S01A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=O6ugTyro; 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 a23si2587648pgd.615.2018.02.13.14.26.55; Tue, 13 Feb 2018 14:27:12 -0800 (PST) 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=O6ugTyro; 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 S966022AbeBMWZ5 (ORCPT + 99 others); Tue, 13 Feb 2018 17:25:57 -0500 Received: from mail-qk0-f194.google.com ([209.85.220.194]:42014 "EHLO mail-qk0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965900AbeBMWZ4 (ORCPT ); Tue, 13 Feb 2018 17:25:56 -0500 Received: by mail-qk0-f194.google.com with SMTP id b130so7261651qkg.9; Tue, 13 Feb 2018 14:25:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=n9jO8saCzf4ACac2tKhBiL5ZatJkQpMZHjDn57rS3bY=; b=O6ugTyrofWsg1LETGHnBzcqHR0Us0u/PlFClSU5epsS2CF2ITTQgcCCEWrW98twNaG jr45V0S+tpWVLptzCxGu3Fcgshkh/esygBeZAGHipxyJp9f+xw7JEi1boXhfGJmVT7tl TjxQIygmo64NqDI0K+3NrpV2WimdL5oz8BRwY7js0kGPmKIMNwO1K4zHc/hR9aBYqWHt IpzEIQB8GLdLSj2Qo5SHkrIkxsHpbLAS0Ex5uUUBGXwUROYxT6mEH4OpyQfGzGlfKdBS MzFD2P9v4Z39JT24xQ0kWEAsS0K5dpuFjmxBfV/4OrLasmyzZnzHg43+oJxqFagmi8DQ QCjg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=n9jO8saCzf4ACac2tKhBiL5ZatJkQpMZHjDn57rS3bY=; b=XIzyi2Fq6WtpKVkOTzJtOHiF6wfTHRkbP4k8kLskI0vawzMVuxL2zKQjuZHQNZWRdm WFFHLfBnhovKdt0m7nQ2PYiM9kyF6r3jn9Abe5RV/W9r6JEyyEvJwsBJ9ik5zIV3gPlx Nya8VRklVdHs3HO4iGjEBTo98OjY6hvTzYGosLc79dIBH2dM69ci6XNrHTft2M3ZmDTX N3rC+pgZJVgQ8QiYev+QK7hD4Xy1TTPncESW58FAVEFZqIc8cjUyq41sz3QSytzf/OGr a6bT4jshj/Ef7H5WMBg3FKoaP/aCJK/6kCHXn2i/REwvBQaDu0xfFKj+K7HcBGxrDIcR 57JQ== X-Gm-Message-State: APf1xPAoeBS5MUXnUm8nHQMi9jva/H2OCusi8201U5fuMD/ljwsYQtYe A6RbOrqv6vNA6ivn8LX/+jtCvWGGVU5n+jp4klU= X-Received: by 10.55.50.9 with SMTP id y9mr4088371qky.207.1518560755658; Tue, 13 Feb 2018 14:25:55 -0800 (PST) MIME-Version: 1.0 Received: by 10.200.54.155 with HTTP; Tue, 13 Feb 2018 14:25:55 -0800 (PST) In-Reply-To: <20180213182521.GA51247@rodete-desktop-imager.corp.google.com> References: <20180210110907.5504-1-jeffy.chen@rock-chips.com> <20180210110907.5504-2-jeffy.chen@rock-chips.com> <20180212221309.GA66974@ban.mtv.corp.google.com> <059e2aa9-bf94-517d-a132-abe851ec69f7@collabora.com> <20180213182521.GA51247@rodete-desktop-imager.corp.google.com> From: Enric Balletbo Serra Date: Tue, 13 Feb 2018 23:25:55 +0100 Message-ID: Subject: Re: [PATCH v2 1/3] Input: gpio-keys - add support for wakeup event action To: Brian Norris Cc: Enric Balletbo i Serra , Jeffy Chen , linux-kernel , Brian Norris , dtor@google.com, Doug Anderson , Thomas Gleixner , Joseph Lo , stephen lu , Dmitry Torokhov , Kate Stewart , linux-input@vger.kernel.org, Greg Kroah-Hartman , Philippe Ombredanne , Arvind Yadav 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 Hi, 2018-02-13 19:25 GMT+01:00 Brian Norris : > Hi Enric, > > On Tue, Feb 13, 2018 at 11:40:44AM +0100, Enric Balletbo i Serra wrote: >> On 12/02/18 23:13, Brian Norris wrote: >> > On Sat, Feb 10, 2018 at 07:09:05PM +0800, Jeffy Chen wrote: >> >> Add support for specifying event actions to trigger wakeup when using >> >> the gpio-keys input device as a wakeup source. >> >> >> >> This would allow the device to configure when to wakeup the system. For >> >> example a gpio-keys input device for pen insert, may only want to wakeup >> >> the system when ejecting the pen. >> >> >> >> Suggested-by: Brian Norris >> >> Signed-off-by: Jeffy Chen >> >> --- >> >> >> >> Changes in v2: >> >> Specify wakeup event action instead of irq trigger type as Brian >> >> suggested. > [...] >> Not sure if you were aware but there is also some discussion related to this, >> maybe we can join the efforts? >> >> v1: https://patchwork.kernel.org/patch/10208261/ >> v2: https://patchwork.kernel.org/patch/10211147/ > > Thanks for the pointers. IIUC, that's talking about a different problem: > how to utilize a GPIO key in level-triggered mode. That touches similar > code, but it doesn't really have anything to do with configuring a > different wakeup trigger type. > Right, sorry. I see now what you are doing. > The two patches would need to be reconciled, if they both are going to > be merged. But otherwise, I think they're perfectly fine to be separate. > Yes, that's why I got confused, I had those patches applied on my tree and when I tried to apply these failed and I wrongly assumed that were doing the same. Waiting to test the third version ;) Thanks, Enric > Brian