Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1054700pxa; Sat, 22 Aug 2020 09:19:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzgr5dKda2xatn5nodTwjjxlq10TOdSbxAiU/CJELDE5aJz2QzTqcYKNj8oeULmql4ccf+Z X-Received: by 2002:aa7:dc44:: with SMTP id g4mr7819674edu.273.1598113162071; Sat, 22 Aug 2020 09:19:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598113162; cv=none; d=google.com; s=arc-20160816; b=gYmMGgv15fW4/6nuw0c4jtWbD4RdtCBbFcQpVj5qAdVXcn7IQQI0AjhWkAIll1kecI MWUcZQpBJj5F7Pp8twI99SN/mSCeu6fuAm4whxHc4mgK2Y7XFF6irAa0/i8CJtqVMuaK 03FACoQmsDsYaHJd78Mg497uf9EL+PRiiy3j+ZYFc8tRT0oBxNIMhM7lLbSJbaB9XDMB Xpho3IzU3IEAbAL3IZBvhN911mpHCMqWquDEthOynBFexPH37/VHffdcU2Nx2tmu0dNE 4UaQNBgBwR/DRvDMszm8rs2DbQ1eW498fWDJdz+1tw0EAKAUvlvB8433uekobwjI0ZBl 4bbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dmarc-filter:dkim-signature; bh=g2D5CX6PHFtAoeO/TcMtBIyamIbzmydUlaD8kWcjgZs=; b=m0e9WQUqVoPcb4D5HMW16UXXqgwaVfwmPTbYGN5VMekbYfj/HI4b7cuo91slf5JFx+ ft44B7VUFZra2qoc4tq2xYJEyJsBehquhTTSTKwYY/mMn+xr77lFkdtJna67hend2kPa 2YzCmIZKZ0tfDGdafq2vv6aey+6GSBOc6oId61OZiNmq10sAoM9HanPyesg4Beq46vvU SWdCcDAtQ8f1LSHpzajW5s9ABAVMsqLTCF6vK35IkOXM6TH76E6/dThOqfQRxzZoEmWO PYfxPh6o2Q9ZawsuKQ+FCNjVOxIs6z7LtcZEvSqha2dRcXEnzBiNXvHP0PKlx6HdoaQi qrTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b="B4eX9Y/Y"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z29si1353036ejl.40.2020.08.22.09.18.58; Sat, 22 Aug 2020 09:19:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b="B4eX9Y/Y"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728480AbgHVQSB (ORCPT + 99 others); Sat, 22 Aug 2020 12:18:01 -0400 Received: from mail29.static.mailgun.info ([104.130.122.29]:44049 "EHLO mail29.static.mailgun.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728445AbgHVQRn (ORCPT ); Sat, 22 Aug 2020 12:17:43 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1598113062; h=References: In-Reply-To: Message-Id: Date: Subject: Cc: To: From: Sender; bh=g2D5CX6PHFtAoeO/TcMtBIyamIbzmydUlaD8kWcjgZs=; b=B4eX9Y/YmB5BVT/emB5yEjczRxQnwpL8mazxwhHAIXp3xL8PFk3Ym9AyXHKFN6t8zmeUX3dE F7IrGnDeCQAfBzPJp/vHvxX0yPdX7yDNX/+xMEyrgAtsHj8yqoQz1AVXkcDCVMkWCwUTO1C0 /QujG5h3ZUzGvIaWVI25aNBz/4Q= X-Mailgun-Sending-Ip: 104.130.122.29 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n01.prod.us-west-2.postgun.com with SMTP id 5f414524c1ce10a0514f36a9 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Sat, 22 Aug 2020 16:17:40 GMT Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 1739BC433CB; Sat, 22 Aug 2020 16:17:40 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=2.0 tests=ALL_TRUSTED,SPF_NONE, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mkshah-linux.qualcomm.com (unknown [202.46.22.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: mkshah) by smtp.codeaurora.org (Postfix) with ESMTPSA id B1E8EC43387; Sat, 22 Aug 2020 16:17:34 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org B1E8EC43387 Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=none smtp.mailfrom=mkshah@codeaurora.org From: Maulik Shah To: bjorn.andersson@linaro.org, maz@kernel.org, linus.walleij@linaro.org, swboyd@chromium.org, evgreen@chromium.org, mka@chromium.org Cc: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-gpio@vger.kernel.org, agross@kernel.org, tglx@linutronix.de, jason@lakedaemon.net, dianders@chromium.org, rnayak@codeaurora.org, ilina@codeaurora.org, lsrao@codeaurora.org, Maulik Shah Subject: [PATCH v5 4/6] pinctrl: qcom: Set IRQCHIP_ENABLE_WAKEUP_ON_SUSPEND flag Date: Sat, 22 Aug 2020 21:46:59 +0530 Message-Id: <1598113021-4149-5-git-send-email-mkshah@codeaurora.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1598113021-4149-1-git-send-email-mkshah@codeaurora.org> References: <1598113021-4149-1-git-send-email-mkshah@codeaurora.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Set IRQCHIP_ENABLE_WAKEUP_ON_SUSPEND flag to enable/unmask the wakeirqs during suspend entry. Signed-off-by: Maulik Shah --- drivers/pinctrl/qcom/pinctrl-msm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/pinctrl/qcom/pinctrl-msm.c b/drivers/pinctrl/qcom/pinctrl-msm.c index 1df2322..c4bcda9 100644 --- a/drivers/pinctrl/qcom/pinctrl-msm.c +++ b/drivers/pinctrl/qcom/pinctrl-msm.c @@ -1242,7 +1242,8 @@ static int msm_gpio_init(struct msm_pinctrl *pctrl) pctrl->irq_chip.irq_set_affinity = msm_gpio_irq_set_affinity; pctrl->irq_chip.irq_set_vcpu_affinity = msm_gpio_irq_set_vcpu_affinity; pctrl->irq_chip.flags = IRQCHIP_MASK_ON_SUSPEND | - IRQCHIP_SET_TYPE_MASKED; + IRQCHIP_SET_TYPE_MASKED | + IRQCHIP_ENABLE_WAKEUP_ON_SUSPEND; np = of_parse_phandle(pctrl->dev->of_node, "wakeup-parent", 0); if (np) { -- QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation