Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp3539267ybc; Thu, 14 Nov 2019 10:37:13 -0800 (PST) X-Google-Smtp-Source: APXvYqzJL1UTNF0uJ9PmDYUqMCUKkFlKDVH4PTpTnwFVpU6FKL3mQ35gMVLlldmBoDJ7vjLcTEXg X-Received: by 2002:a7b:c307:: with SMTP id k7mr8601074wmj.134.1573756633342; Thu, 14 Nov 2019 10:37:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573756633; cv=none; d=google.com; s=arc-20160816; b=r+DzCY0K9azxVWRKk2cqqPewPJpuEzRSedN4pgZCohtoMVfBZA2N2m8vlcOgyIDOJw +f/RhAhr6Ip9XsoDL9S9duejpe9zrW5e4VaTz3RH0u4wwg8PU+69MBcuyBHjgoHKk5iK cU8orU6vc4vhI/NdZF0oPPpYQ38M1ImoN3AuJ/3xqmRprup7F/3y9/ZeyQWmM3zV9mxk +NmkpQQ/4Yfh6t8miSb/YxEZn2IFcMSwSMOLdmCcYbMKcvlr2JXKPxQ1icn1uokq/9Y8 Y7pMml37IqokIcNgA82iBh+0Do9UtyNSwrlmsDJ53NPy67CNPoaUCykJzQfnk+UvLxk4 ANng== 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 :dmarc-filter:dkim-signature:dkim-signature; bh=aboRQ0ygD6MO2mDFzcWljFcSDXPCUnFLmlGC27xRdig=; b=p784jv58lx8cmpjPh86CKhc3ndb29+hWgtWzXL4qTFRafn60Wzl4/Qt5ny9EWSTESN ZpZUWGm/5DqjHWroMYM/AZa3GUgdNx9aw5i4vsqxDSdg/mcEBl2SSeV6sn6pJmWP5QJb oCBc58B+G1dcqD7DZpUqLCSusNsiNtVZk1QQeWEQJ6vvzM2OPQ18ABgAgs3UgYHOFJyA ACawRjebfKCOCkJnEgejzKfLVmjxKa878lie2TlHOKAluETGsye3wAHeF0uPArH9Sxan fSwfOgbKIEvNPH2boY7ZrJDIpCKe24Bgdg4g7OQ1gfF2c+iiZ4W7cWvKLxxUtb0cfEA1 axlw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=Ks2VJ2mn; dkim=pass header.i=@codeaurora.org header.s=default header.b=MiP3pgpl; 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 w1si5034497eda.433.2019.11.14.10.36.46; Thu, 14 Nov 2019 10:37:13 -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=@codeaurora.org header.s=default header.b=Ks2VJ2mn; dkim=pass header.i=@codeaurora.org header.s=default header.b=MiP3pgpl; 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 S1726986AbfKNSfi (ORCPT + 99 others); Thu, 14 Nov 2019 13:35:38 -0500 Received: from smtp.codeaurora.org ([198.145.29.96]:55622 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726098AbfKNSfi (ORCPT ); Thu, 14 Nov 2019 13:35:38 -0500 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id DD6D360FBB; Thu, 14 Nov 2019 18:35:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1573756537; bh=SgFbpCmztnSKJcjOZEZx8rMc1JBkIjET0tzBEEjYq5s=; h=From:To:Cc:Subject:Date:From; b=Ks2VJ2mnRXbTWTmhsisVAokjQo4+IGbAcR1PF+SRWRemihKLS4HowgWxWYtVzfR9H 189mBeP4114gYnrISooMQJ/9/5eJVzoVoXCyEzCpP79zEPChpOUyjR/21t4c9Nru3D DAzjNMmy7IoUf8/0Mx/XIXJH7K/AHU3OTGh7+Nvg= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.7 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_INVALID,DKIM_SIGNED,SPF_NONE autolearn=no autolearn_force=no version=3.4.0 Received: from codeaurora.org (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: ilina@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 0DA7E60EE5; Thu, 14 Nov 2019 18:35:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1573756534; bh=SgFbpCmztnSKJcjOZEZx8rMc1JBkIjET0tzBEEjYq5s=; h=From:To:Cc:Subject:Date:From; b=MiP3pgpl5Q1miW9ZcghzZMG+YCsROKflKxVKM3Y0wmLQKIiWIgRGVaj4N5LYcwQWi cAetRNeWMJxA2DeqjvLYx3ZdCjff9TdXZv+BmBEBugtesb9eQ91MBMtQZey1Envq7H OgJR3jqN3IHTllbf6jTE27gWoJ1EVIAw3dcwtmiM= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 0DA7E60EE5 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=ilina@codeaurora.org From: Lina Iyer To: swboyd@chromium.org, maz@kernel.org, linus.walleij@linaro.org, bjorn.andersson@linaro.org Cc: evgreen@chromium.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, mkshah@codeaurora.org, linux-gpio@vger.kernel.org, agross@kernel.org, dianders@chromium.org, Lina Iyer Subject: [PATCH 00/12] Support wakeup capable GPIOs Date: Thu, 14 Nov 2019 11:35:09 -0700 Message-Id: <1573756521-27373-1-git-send-email-ilina@codeaurora.org> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi all, Thanks for all the reviews. Here is the next spin of the wakeup capable GPIO support. In order to facilitate basic support available in the kernel, I have dropped the SPI register configuration. The feature was added when this series was restarted based on new hierarchy support in gpiolib. But, the SPI configuration can be done in the firmware. This would avoid a whole lot of code in linux that serve little to no purpose. Users of GPIO never have the need to change the trigger type (level edge and vice-versa) and the basic configuration can be set in the firmware before boot. Changes in v1: - Address review comments - Add Reviewed-by tags - Drop SPI config patches - Rebase on top of Rajendra's PDC changes [6] Changes in RFC v2[5]: - Address review comments #3, #4, #6, #7, #8, #9, #10 - Rebased on top of linux-next GPIO latest patches [1],[3],[4] - Increase PDC max irqs in #2 (avoid merge conflicts with downstream) - Add Reviewed-by #5 Please consider reviewing these patches. Thanks, Lina [1]. https://lore.kernel.org/linux-gpio/20190808123242.5359-1-linus.walleij@linaro.org/ [2]. https://lkml.org/lkml/2019/5/7/1173 [3]. https://lore.kernel.org/r/20190819084904.30027-1-linus.walleij@linaro.org [4]. https://lore.kernel.org/r/20190724083828.7496-1-linus.walleij@linaro.org [5]. https://lore.kernel.org/linux-gpio/5da6b849.1c69fb81.a9b04.1b9f@mx.google.com/t/ [6]. https://lore.kernel.org/linux-arm-msm/d622482d92059533f03b65af26c69b9b@www.loen.fr/ Lina Iyer (10): irqdomain: add bus token DOMAIN_BUS_WAKEUP drivers: irqchip: qcom-pdc: update max PDC interrupts drivers: irqchip: pdc: Do not toggle IRQ_ENABLE during mask/unmask drivers: irqchip: add PDC irqdomain for wakeup capable GPIOs of: irq: document properties for wakeup interrupt parent drivers: pinctrl: msm: setup GPIO chip in hierarchy drivers: pinctrl: sdm845: add PDC wakeup interrupt map for GPIOs arm64: dts: qcom: add PDC interrupt controller for SDM845 arm64: dts: qcom: setup PDC as the wakeup parent for TLMM on SDM845 arm64: defconfig: enable PDC interrupt controller for Qualcomm SDM845 Maulik Shah (2): genirq: Introduce irq_chip_get/set_parent_state calls drivers: irqchip: pdc: Add irqchip set/get state calls .../bindings/interrupt-controller/interrupts.txt | 12 ++ arch/arm64/boot/dts/qcom/sdm845.dtsi | 10 ++ arch/arm64/configs/defconfig | 1 + drivers/irqchip/qcom-pdc.c | 147 +++++++++++++++++++-- drivers/pinctrl/qcom/pinctrl-msm.c | 113 ++++++++++++++++ drivers/pinctrl/qcom/pinctrl-msm.h | 16 +++ drivers/pinctrl/qcom/pinctrl-sdm845.c | 23 +++- include/linux/irq.h | 6 + include/linux/irqdomain.h | 1 + include/linux/soc/qcom/irq.h | 34 +++++ kernel/irq/chip.c | 44 ++++++ 11 files changed, 393 insertions(+), 14 deletions(-) create mode 100644 include/linux/soc/qcom/irq.h -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project