Received: by 10.223.185.111 with SMTP id b44csp863366wrg; Fri, 9 Mar 2018 15:29:05 -0800 (PST) X-Google-Smtp-Source: AG47ELulCitXqvlT4Cj46Adyp+ghWo4ID0CTHwK7JKznvwYY6LBCq+oBpU2F3mt3Ybg/U6tPESGz X-Received: by 10.101.65.71 with SMTP id x7mr154358pgp.203.1520638145382; Fri, 09 Mar 2018 15:29:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520638145; cv=none; d=google.com; s=arc-20160816; b=PQF3z2U9UA+4k70VkVBk6P7wTo3+o5h+XuWgRq2ZPl2qjRjx178ITwYjulem8goinH JIZNrwhiL97wkHGgP0VwKQPDWRQiQPK/neNAgCAoc3AQfnUzCKIlLBtbgi+jTOw2xXyK 6vsMhaxyxFV7dXYLo5LLP5nOUu6arCuPwcOG0sClBWkxgMID9BByAJ9gCmqD11l/ba68 myIWdkALSDLSsMh4NCYbXBpEfOeBzCtReph48zdaQ4EPawCHuN6l2nRtz5xKMKrUvKVq 9W26NpifSI4u/Htrgr1qADywFBjI1vBtQEmbnUTfuvQDOdPU+dcNuEao01xeJGdXVif9 xcxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=1RCUlxJ6xrmyfz4prZjln+Ma+wOFH0Egcg2I40/zB7o=; b=RUTdtLWREjjZU3U4haZ1PK8/WTK/nAho8Bfvdu5A5nCt6U2EgLy6CnHOzPB/PtM/Qk 2aNuZ+003FNEQzQ5UfFhOzGKc8kqYDTgU4OCfb9omLXD+BDJeAmehiuSI5DiopyY0k8J iLo2ydaStwAP/jk3JbHUUwBNXuy6udZ7KpWGfCImmltiK6k9Lsj6VmNXskKJVZKzc+Bg IlmDsPH2Vx8v5WwsyOAxehfz07otPsTBCEY9bzHPw6FeRZVrxl6eWge+Bdg9o8RIV7+m AYNOlsa10dV068zvdn5Z/juEY4WQWqbNbQ8vRz9GiYOce1l52ROr5PyNniL0RK9XdaRE zhLw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u193si1434715pgc.352.2018.03.09.15.28.50; Fri, 09 Mar 2018 15:29:05 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751612AbeCIX11 (ORCPT + 99 others); Fri, 9 Mar 2018 18:27:27 -0500 Received: from mail-oi0-f68.google.com ([209.85.218.68]:41376 "EHLO mail-oi0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751211AbeCIX1X (ORCPT ); Fri, 9 Mar 2018 18:27:23 -0500 Received: by mail-oi0-f68.google.com with SMTP id g5so8220854oiy.8; Fri, 09 Mar 2018 15:27:23 -0800 (PST) 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:references :mime-version:content-disposition:in-reply-to:user-agent; bh=1RCUlxJ6xrmyfz4prZjln+Ma+wOFH0Egcg2I40/zB7o=; b=KIPooOzGYT6y71WFy27mIopgfbWIFhHtKvwEV2dUkNdXBk+IZftcsjfKY6SkVjL6G9 fDTl8PdkkjqKkrjsyM7P13DE8EnlCg16VmHqVoN8Dvw9qJLyHeklCNkypl7z/f7IJy5M P6fmI8S2q0qFgvho4GI+B9lrk7z17ScY07uKE9/NQN2Z0tHaBiU3NHln6kuIZvAiV0Y4 ZOWKyUW1UkDREJvM5sWy6odMxRdQ3M17Pa4cmu1aRaWCgKqjCZ9XU3GLYqFd3Rw6nSz1 Ll4o8Mx4qQJVHjOh41Z9mhYNvxOLQMdpNQ5AvdlkP2flk3n0bVH4RdaDLmyWMP4JKHZ8 DCmw== X-Gm-Message-State: AElRT7Fj79VOqEDVD8/ILO8jmvYd8jwatPcNMOW9XYS7AFuPxCRaiE9V YmU0IBhS+SRd998OX1+RCA== X-Received: by 10.202.90.138 with SMTP id o132mr109971oib.11.1520638043042; Fri, 09 Mar 2018 15:27:23 -0800 (PST) Received: from localhost (mobile-166-172-122-20.mycingular.net. [166.172.122.20]) by smtp.gmail.com with ESMTPSA id g89sm998196otg.57.2018.03.09.15.27.21 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 09 Mar 2018 15:27:22 -0800 (PST) Date: Fri, 9 Mar 2018 17:27:21 -0600 From: Rob Herring To: Jeffy Chen Cc: linux-kernel@vger.kernel.org, briannorris@google.com, heiko@sntech.de, dtor@google.com, dianders@google.com, devicetree@vger.kernel.org, Guenter Roeck , Thomas Gleixner , Joseph Lo , stephen lu , Dmitry Torokhov , Kate Stewart , linux-input@vger.kernel.org, Greg Kroah-Hartman , Mark Rutland , Philippe Ombredanne , Arvind Yadav Subject: Re: [PATCH v5 1/3] Input: gpio-keys - add support for wakeup event action Message-ID: <20180309232720.pmqaulifiqa5czul@rob-hp-laptop> References: <20180308073213.8419-1-jeffy.chen@rock-chips.com> <20180308073213.8419-2-jeffy.chen@rock-chips.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180308073213.8419-2-jeffy.chen@rock-chips.com> User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 08, 2018 at 03:32:11PM +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 v5: > Remove unneeded irq_wake flag as Andy suggested. > > Changes in v4: > Add dt-binding gpio-keys.h, stop saving irq trigger type, add enable/disable wakeup helpers as Dmitry suggested. > > Changes in v3: > Adding more comments as Brian suggested. > > Changes in v2: > Specify wakeup event action instead of irq trigger type as Brian > suggested. > > drivers/input/keyboard/gpio_keys.c | 63 +++++++++++++++++++++++++++++++++-- > include/dt-bindings/input/gpio-keys.h | 13 ++++++++ This file should be in the binding patch. > include/linux/gpio_keys.h | 2 ++ > 3 files changed, 75 insertions(+), 3 deletions(-) > create mode 100644 include/dt-bindings/input/gpio-keys.h