Received: by 10.223.185.116 with SMTP id b49csp6000241wrg; Wed, 7 Mar 2018 23:34:30 -0800 (PST) X-Google-Smtp-Source: AG47ELv/F7wLfUFNsK189cr9HzwHIcZFxLaqc+NWW9Ru9OCZzacGaVjffb1XNOBgkH1IFwkhkpcb X-Received: by 10.98.67.216 with SMTP id l85mr25357082pfi.214.1520494470669; Wed, 07 Mar 2018 23:34:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520494470; cv=none; d=google.com; s=arc-20160816; b=IUwCLa4rZhW9E4kQWyyC9zWYDYKJtOblteClXL/Vpf3bEPRUuksKf8va3TCCjFTMLT s1UropDriJoM2RqaodDOLXkRzjvCZALByhwnUMwVWQ3oRixMqwZFbCVBz08xMqB622HU zbBlKOWhoqU+Fcb+5fPlAGuaFXTxP3ij/tLH+ioKQov3vZMoUFADv5x26JDV+R/njtJG 4mR6WGUeCmc+SqdZ0IY3lcffCzu6F0aiSF5AYomGKEUiocRezjI6hr6DwvNs7RoKBOXL 4qcNHiTZos4k0uhbN83Sct2uJzWqEG4OR7SjjnfBM0zrysqUG6bRvBbzouZrXZ7qKt6+ UUqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:in-reply-to :references:subject:cc:to:mime-version:user-agent:from:date :message-id:arc-authentication-results; bh=7LUzLsA8MTiXnIfWP5Xp14RtbL6THbgcdV1FEnYxA2Q=; b=x3S5PLEmGiIY6dTjUwEGDzIbOkP6zTq20mpOrH/AkC2I8pW6xnZ3UXzj1GPeGUqInC SYR/vevKUHgauuYAzMfxSjOIRsajDwCyr06HbnLd7CO5gq7VsSpcoMHsCRc+/o1OwSMH 53r2TIkYD8vuwV2oUQz+6PMtIlE3ygRzVDFR0UbrdhdC1Ieb7iRB0jVKyR4SC2yBeIER aTGs5Ip+OSvePZVY1JoYL74LXXaXPrgQEz9yeuTecZbXd6pZIRiOnwp+fBmFhs+qp2GM AnxH8/mMzYzDJopPguJxU9d9iUy/xZ30SRjcVehOLGZ50KfZWq9IXsygV2y9xGSIPYfZ OaxQ== 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 p5-v6si819608plk.787.2018.03.07.23.34.16; Wed, 07 Mar 2018 23:34:30 -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 S934599AbeCHHcp (ORCPT + 99 others); Thu, 8 Mar 2018 02:32:45 -0500 Received: from regular1.263xmail.com ([211.150.99.131]:40765 "EHLO regular1.263xmail.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754883AbeCHHcm (ORCPT ); Thu, 8 Mar 2018 02:32:42 -0500 Received: from jeffy.chen?rock-chips.com (unknown [192.168.167.129]) by regular1.263xmail.com (Postfix) with ESMTP id B81296208; Thu, 8 Mar 2018 15:32:26 +0800 (CST) X-263anti-spam: KSV:0;BIG:0; X-MAIL-GRAY: 0 X-MAIL-DELIVERY: 1 X-KSVirus-check: 0 X-ADDR-CHECKED4: 1 X-ABS-CHECKED: 1 X-SKE-CHECKED: 1 X-ANTISPAM-LEVEL: 2 Received: from [172.16.22.73] (localhost [127.0.0.1]) by smtp.263.net (Postfix) with ESMTPA id AF82D395; Thu, 8 Mar 2018 15:32:11 +0800 (CST) X-RL-SENDER: jeffy.chen@rock-chips.com X-FST-TO: andy.shevchenko@gmail.com X-SENDER-IP: 103.29.142.67 X-LOGIN-NAME: jeffy.chen@rock-chips.com X-UNIQUE-TAG: X-ATTACHMENT-NUM: 0 X-SENDER: cjf@rock-chips.com X-DNS-TYPE: 0 Received: from [172.16.22.73] (unknown [103.29.142.67]) by smtp.263.net (Postfix) whith ESMTP id 11243RZXG6I; Thu, 08 Mar 2018 15:32:25 +0800 (CST) Message-ID: <5AA0E6F9.6060704@rock-chips.com> Date: Thu, 08 Mar 2018 15:32:09 +0800 From: JeffyChen User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:19.0) Gecko/20130126 Thunderbird/19.0 MIME-Version: 1.0 To: Andy Shevchenko CC: Linux Kernel Mailing List , briannorris@google.com, =?UTF-8?B?SGVpa28gU3TDvGJuZXI=?= , Dmitry Torokhov , Douglas Anderson , devicetree , Guenter Roeck , Thomas Gleixner , Joseph Lo , stephen lu , Rob Herring , Dmitry Torokhov , Kate Stewart , linux-input , Greg Kroah-Hartman , Mark Rutland , Philippe Ombredanne , Arvind Yadav Subject: Re: [PATCH v4 1/3] Input: gpio-keys - add support for wakeup event action References: <20180306074418.8879-1-jeffy.chen@rock-chips.com> <20180306074418.8879-2-jeffy.chen@rock-chips.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Andy, Thanks for your reply. On 03/07/2018 07:57 PM, Andy Shevchenko wrote: > On Tue, Mar 6, 2018 at 9:44 AM, 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. > >> + bool wakeup_enabled; > >> + if (bdata->wakeup_enabled) { > > This is redundant. IRQ core keeps track on this information already. > > Check below as an example > aef3ad103a68 ("serial: core: remove unneeded irq_wake flag") > right, that make sense. >