Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2604946ybt; Mon, 22 Jun 2020 02:37:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwWbbJUT4Rbwpsy2jJbPj32zm9rybdy0DqKeyjSc7Se2OMVELo+LEjViAPpbelFjP9BSA68 X-Received: by 2002:a17:906:7247:: with SMTP id n7mr14921277ejk.105.1592818644320; Mon, 22 Jun 2020 02:37:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592818644; cv=none; d=google.com; s=arc-20160816; b=cUgRQCPY18sMAPRo48bbvoiMR7y0syY0xQA/oCuRCXviJtjybovEBj8HXFNWZGZteV GIpXiGGi0EbXifAfDIY4D/rNIpD6Y4tVo//OlPhq282Rtgq4Br5jbHRyW1zyg+E+8ZYK O7CFbu07llw/aTKd6fUpaJgJmFnObirz05HAKwUW24fACAck0sE5RzHiJF3E009aKfrn PV4LcWAEfQglzViRWGr4wGi6sixMRn5CndkC5PVj8m/GwmQDN0ZqB2xU+ww/1RLb1b8Y Bqo+jlqE4itPPktQHzeprDMFKLHyZbK+oMWX8Y0VvaEuMnoisKdIkfvjrElq3k93QT+P 5X2g== 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=3b/pVhi5TVOssCKr4UzpL88eh2CgyftfI3EHrduh+mQ=; b=xE188J8XcwYaD+ieBQrIWIyJjthN06+f25Ij3JzdN/6RChhPY+oKqNDcgdmFdYtLZS gEbiZUJGZzRxnzRhscShXIdOjbUpeX56pjGkeWyAWqOOpPLLWFy0XSDD8cA3XyxXSjyd tNvrpgyYW483gIYlDfz3TTA9qw66WB81Y7MD96WJnw15Yl10/IowE/AN/K/HEW1PVatA kJKNBcgzzrGtt6a2yFNR0eYGvJpOW8JZM/EP6UYZSS4vxsbcca/njHGLuURuk4RmjMUe iSezMIh8ce/7N+It1uozwVrAninp/iyZVXnDx20Z3fDffICiISyIADAgwT1tnSHQyFoi jKyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=n6lqQUZn; 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 eb14si1401774edb.11.2020.06.22.02.37.02; Mon, 22 Jun 2020 02:37:24 -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=n6lqQUZn; 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 S1726992AbgFVJdF (ORCPT + 99 others); Mon, 22 Jun 2020 05:33:05 -0400 Received: from mail29.static.mailgun.info ([104.130.122.29]:29602 "EHLO mail29.static.mailgun.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726955AbgFVJdE (ORCPT ); Mon, 22 Jun 2020 05:33:04 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1592818384; h=References: In-Reply-To: Message-Id: Date: Subject: Cc: To: From: Sender; bh=3b/pVhi5TVOssCKr4UzpL88eh2CgyftfI3EHrduh+mQ=; b=n6lqQUZnNmzBP/rsh/s/WVl7T+j4xDOv3pg4Vd3YKRxFh9nLqTHwZp9WQi8eeMfP+84wp4Si /hgPKaHLTWLziWaL8AAYHE8EdwZ/vkMkP0YJ+8KGpnIwKO094bMXl9a9JBfqs9D2Vn5WD7vv Mj1qylEv84vLPHbHf+BdQXFOcS8= 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-n14.prod.us-west-2.postgun.com with SMTP id 5ef07ac0e144dd5115ab3779 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Mon, 22 Jun 2020 09:32:48 GMT Received: by smtp.codeaurora.org (Postfix, from userid 1001) id E0003C433CB; Mon, 22 Jun 2020 09:32:48 +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 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 082FEC43395; Mon, 22 Jun 2020 09:32:41 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 082FEC43395 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 v3 2/5] pinctrl: qcom: Add msmgpio irqchip flags Date: Mon, 22 Jun 2020 15:01:45 +0530 Message-Id: <1592818308-23001-3-git-send-email-mkshah@codeaurora.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1592818308-23001-1-git-send-email-mkshah@codeaurora.org> References: <1592818308-23001-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. Masking before changing type should make sure any spurious interrupt is not detected during this operation. Fixes: e35a6ae0eb3a ("pinctrl/msm: Setup GPIO chip in hierarchy") Acked-by: Linus Walleij 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