Received: by 10.223.185.116 with SMTP id b49csp93953wrg; Sat, 10 Feb 2018 03:10:32 -0800 (PST) X-Google-Smtp-Source: AH8x224Dg0VM0my9Fu4AEQL6H5AvYXbZIWAbSFxx17SRzqqLjvaT7o/iors+Uc5CD2gOMO3TBpg5 X-Received: by 2002:a17:902:7b81:: with SMTP id w1-v6mr5251934pll.295.1518261032745; Sat, 10 Feb 2018 03:10:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518261032; cv=none; d=google.com; s=arc-20160816; b=DLF05+Hea3Wq3dY1OujrvUVmTYEacqk2PqGXuffi4uEM/HZQ+JHq95ml9fLVcuS93s QHeB5BgismyWX9ywcj7/mJf8EENN0/unwQ640hsOa0DbshsM+I6zxV3t8oBb/sWbNPZJ 8JaSt1JDK7N8pVJ8oZpF5A2UtMTXlQZzISkPwHEuLbcxDVPEKF2yziHGqBVAW0m+hfJh 4AlNUDsr/CKFRhD0n9zZU/SOBY5X5KoD5IVG/CvF9jEUS3/4uOSgmeUa+nkhKf/3fHB7 nSp2chqMk0q19HiH6+NlOBvmbi9XuSHan7XKMwC+my46FxJYWoN9OUhVQRRyWTGtf6mk QjJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=o1+F/Wqs9uV+f23DvmEe91ZFq1mK/3juLpkB1n8sPyQ=; b=KdbVS8o3BQwvor1EtdkP3egWQA1ntSJ5Dnm2y61ZPALpc4ZAQ4+ymxxcm59dgTuG2O zpmpCp7X1ZlUWpmBp12PemAIh4v8IuuUk0UwUN0LaTBu+qByP1Mc91A5BRzJ69dbqBCL T5aMHyfcSEgEVZXLxHmqHjrVA6iZVYFqeqnkT+x2IoFo2AK8sztmkhCWjsduUDvZgz+P CSrdaA3YZJgQVIkejwzPAitOzFQ30tzmjwbUDU5rhvBRFSoGIbqmWk9KNR6MmUslM5Uf L1Akqk0P/lj1CvbziG17+edV4IHRTkn0HF6per4ofHVU1j5qJA0dD1mrKIOhMAIiHWJt 7iNw== 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 204si2576671pgb.389.2018.02.10.03.10.18; Sat, 10 Feb 2018 03:10:32 -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 S1751104AbeBJLJi (ORCPT + 99 others); Sat, 10 Feb 2018 06:09:38 -0500 Received: from regular1.263xmail.com ([211.150.99.138]:57788 "EHLO regular1.263xmail.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750857AbeBJLJg (ORCPT ); Sat, 10 Feb 2018 06:09:36 -0500 Received: from jeffy.chen?rock-chips.com (unknown [192.168.167.156]) by regular1.263xmail.com (Postfix) with ESMTP id C18F07909; Sat, 10 Feb 2018 19:09:25 +0800 (CST) X-263anti-spam: KSV:0; X-MAIL-GRAY: 0 X-MAIL-DELIVERY: 1 X-KSVirus-check: 0 X-ABS-CHECKED: 4 Received: from localhost (localhost [127.0.0.1]) by smtp.263.net (Postfix) with ESMTPA id 838BD349; Sat, 10 Feb 2018 19:09:13 +0800 (CST) X-RL-SENDER: jeffy.chen@rock-chips.com X-FST-TO: linux-kernel@vger.kernel.org X-SENDER-IP: 103.29.142.67 X-LOGIN-NAME: jeffy.chen@rock-chips.com X-UNIQUE-TAG: <9781965f6bd348c5e5765e562243b24f> X-ATTACHMENT-NUM: 0 X-SENDER: cjf@rock-chips.com X-DNS-TYPE: 0 Received: from localhost (unknown [103.29.142.67]) by smtp.263.net (Postfix) whith ESMTP id 25248KZ0RWQ; Sat, 10 Feb 2018 19:09:26 +0800 (CST) From: Jeffy Chen To: linux-kernel@vger.kernel.org Cc: briannorris@google.com, dtor@google.com, dianders@google.com, Jeffy Chen , Arnd Bergmann , Joseph Lo , Rob Herring , Catalin Marinas , Emil Renner Berthing , Enric Balletbo i Serra , Heiko Stuebner , Brian Norris , Thomas Gleixner , Philippe Ombredanne , linux-rockchip@lists.infradead.org, Kate Stewart , linux-input@vger.kernel.org, Will Deacon , Matthias Kaehlcke , devicetree@vger.kernel.org, stephen lu , Greg Kroah-Hartman , Arvind Yadav , linux-arm-kernel@lists.infradead.org, Dmitry Torokhov , Mark Rutland Subject: [PATCH v2 0/3] gpio-keys: Add support for specifying wakeup event action Date: Sat, 10 Feb 2018 19:09:04 +0800 Message-Id: <20180210110907.5504-1-jeffy.chen@rock-chips.com> X-Mailer: git-send-email 2.11.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On chromebook kevin, we are using gpio-keys for pen insert event. But we only want it to wakeup the system when ejecting the pen. So we may need to change the interrupt trigger type during suspending. Changes in v2: Specify wakeup event action instead of irq trigger type as Brian suggested. Jeffy Chen (3): Input: gpio-keys - add support for wakeup event action Input: gpio-keys - allow setting wakeup event action in DT arm64: dts: rockchip: Avoid wakeup when inserting the pen .../devicetree/bindings/input/gpio-keys.txt | 8 +++++++ arch/arm64/boot/dts/rockchip/rk3399-gru-kevin.dts | 2 ++ drivers/input/keyboard/gpio_keys.c | 27 ++++++++++++++++++++++ include/linux/gpio_keys.h | 2 ++ include/uapi/linux/input-event-codes.h | 9 ++++++++ 5 files changed, 48 insertions(+) -- 2.11.0