Received: by 2002:a25:1104:0:0:0:0:0 with SMTP id 4csp272437ybr; Fri, 22 May 2020 06:22:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyJmD5mRaZTQ/+AfPwXhpq0B30pdUlgoZ3qhfjCvjT+W0wEM8PUB28dz+RTpHI0DeP+enEB X-Received: by 2002:a17:906:9719:: with SMTP id k25mr8448702ejx.411.1590153741537; Fri, 22 May 2020 06:22:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590153741; cv=none; d=google.com; s=arc-20160816; b=KvQEumK4rbpkp6rJ661v9R0523CQT1dFMEt+M1bPb8F5qgzLM/o6YBXeZYKrFNgcKS p68Ys7/sdQb4qhwsQdeww7HU8G8eqawmCmJYpGq6RmalCC9Blk82xulxf7ZM6dnEzqUw nKapWfD9b42+kOIEXbuEs7xyZlnYgMjyd+lm7HkYLfssi5QrNYVb/Gh1gO4OJHS0Gi8c 6VAy9EOSpg6Xb2by8QaizGEXROGCRb/VeQ/Zz2908cOSaCed+OMTmNLr7BKl5tf+VDhp FVfLeZ98n5svLeqBs610Qk5dec2gBPRVpoczmO+63x3tOe9PPxlCEnASxl/cVKE9Tf9a pwdw== 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=q0utGiyDt8WT0d1no5dYJq9oKXeMrSH7v6XiMw0CH6w=; b=LZUfqTQMzdXUe41DVbeDXCuNI+xh9QDAWHhd8k/CT3X4LEdLW++I+CvugDtJwjMxRr 8Cbgny7viXJ7FmBcDNAqQZ9308GCocCGC4aMFPypWbDjwvnHAgyBWJlAXth5AF2OEfci U2G/lvgQZpVXYUF7ObJPwiFOj84jnuHwHHUsVBjEDBY+eHdRujkWjpCX/8fr9nkXjcJk 3rFBY43Wt+q78NGp1b7Tx2MejkRKE0C2Va9LN8j20KOin3yHBk18JmPirBXUkteD89K7 jMp7czCfWXkVkLkIvm3tDEemip6eFNyeZv4qLEbVMNoRhpthW1+9NLi+0MJYPNnuoOcN 5IAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=iYcDzeO4; 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 f1si4902549edl.533.2020.05.22.06.21.58; Fri, 22 May 2020 06:22:21 -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=iYcDzeO4; 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 S1729796AbgEVNU3 (ORCPT + 99 others); Fri, 22 May 2020 09:20:29 -0400 Received: from mail27.static.mailgun.info ([104.130.122.27]:49676 "EHLO mail27.static.mailgun.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729367AbgEVNU2 (ORCPT ); Fri, 22 May 2020 09:20:28 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1590153628; h=References: In-Reply-To: Message-Id: Date: Subject: Cc: To: From: Sender; bh=q0utGiyDt8WT0d1no5dYJq9oKXeMrSH7v6XiMw0CH6w=; b=iYcDzeO4q0ZeZrTyLWUc+R/+btz6Y0bDkmnJjROh1Qs5B+7iGgbidE6z861unelgG3Iry1De Qd7z5WnRj2iYM16Gd1anS9H8QUpEJosiqMvpqlj+rveogeuG1dUpv+W0J/VQONk1KbjuA79T EtYa76mE3Ygmgepr9ZWbcy/UT78= X-Mailgun-Sending-Ip: 104.130.122.27 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-n03.prod.us-west-2.postgun.com with SMTP id 5ec7d19b569a62550de4d7ee (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Fri, 22 May 2020 13:20:27 GMT Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 9B9ABC433C8; Fri, 22 May 2020 13:20:27 +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 (blr-c-bdr-fw-01_GlobalNAT_AllZones-Outside.qualcomm.com [103.229.19.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 33859C433CB; Fri, 22 May 2020 13:20:21 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 33859C433CB 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 3/4] pinctrl: qcom: Add msmgpio irqchip flags Date: Fri, 22 May 2020 18:49:28 +0530 Message-Id: <1590153569-21706-4-git-send-email-mkshah@codeaurora.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1590153569-21706-1-git-send-email-mkshah@codeaurora.org> References: <1590153569-21706-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 Add irqchip specific flags for msmgpio irqchip to mask non wakeirqs during suspend and mask before setting irq type. Signed-off-by: Maulik Shah --- drivers/pinctrl/qcom/pinctrl-msm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/pinctrl/qcom/pinctrl-msm.c b/drivers/pinctrl/qcom/pinctrl-msm.c index 2419023..b909ffe 100644 --- a/drivers/pinctrl/qcom/pinctrl-msm.c +++ b/drivers/pinctrl/qcom/pinctrl-msm.c @@ -1143,6 +1143,8 @@ static int msm_gpio_init(struct msm_pinctrl *pctrl) pctrl->irq_chip.irq_release_resources = msm_gpio_irq_relres; 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; 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