Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1055352pxa; Sat, 22 Aug 2020 09:20:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyYeGZrOu0qWCLhYDasYIcLuAjiBFjwnWkHrF4qLOh591bmr6jIHHuvBN/TrK+wr7efg8N/ X-Received: by 2002:a17:906:e093:: with SMTP id gh19mr7878233ejb.210.1598113250652; Sat, 22 Aug 2020 09:20:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598113250; cv=none; d=google.com; s=arc-20160816; b=d7FfRz25GIywHPQCccP4YWfmgQ3H+MwbQfz+7t9yBRA8EONKsnaM1fnW3LT6SN8K7E 8dOLCI0eTZ0nr2Vl/jhQaALlhQIXcQq3JpFwVxHUSDCxzneLmA6QlLuy6meq0ZHBzXXF RieBMrirFytP5qaiyz6DJjfzG4J7fbfto7kTmqhiKnLj5aN2rOseG8fZKZKX30BXPC2W 0PBuP17xkw0CVdXDWAdUq9eyrFIPW945v046XZBa8seaXqDINf8rh6Q9CAe+qb+x76dN J7d18sxB6KRdsl84YVyb1PMCcJp8htj4OuCyQqFnGgbiEeoD+vxDAdL5ZHqNiOYvFGt/ EcaQ== 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=V0xix9bTrnr0rzWfLd22/svLdXIQflVHhuDhuX8rBWA=; b=NI/Kg/MUGT3pJWT+2CqSDV2q3VB3wLLHcxTkroW2wvDfXLRXgpG8o8DYvPjczS7K+x JIaGjSY4anXc3Eh8OmT3QwfbppJ3/GOpfKTnxoJpGpTr2DdELdEgZDfTLweDdafaogeo SEd8U6jIWvH9+H/KUHctQSI9QQ/uySxX589qu9VPN5xy7AFFISfg7vaPze+E1iGUZcz0 bi7QOvNiLUIeNCwbvlcksf/2qrelKYm0EDPJvDkNWuOU2OlZkehG8cZpA95+yOK8OM8i 8b1f5B5LRBDEsbB85ZHHcLwHDUr6TQTVBYJfRujD14+Vj/hP/FdAW259UOBmn5k6Pko1 uEXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=n888TFnR; 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 bt2si3418957ejb.597.2020.08.22.09.20.27; Sat, 22 Aug 2020 09:20:50 -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=n888TFnR; 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 S1728455AbgHVQRu (ORCPT + 99 others); Sat, 22 Aug 2020 12:17:50 -0400 Received: from mail29.static.mailgun.info ([104.130.122.29]:38689 "EHLO mail29.static.mailgun.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728413AbgHVQR0 (ORCPT ); Sat, 22 Aug 2020 12:17:26 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1598113045; h=References: In-Reply-To: Message-Id: Date: Subject: Cc: To: From: Sender; bh=V0xix9bTrnr0rzWfLd22/svLdXIQflVHhuDhuX8rBWA=; b=n888TFnRuqCt/0HoYXqfWEe2E1mq/WIerP1bnGBO7NzCVsHABrmc3PIrvF+Bi/c2K2pvkfeu MMaWjsw8+eslwHtFNeCZHtKm39ahyRrbSz5hiow6fSniMpfsGGCG16dklisNJCAgd9dNqvew 9fW2W8m/aSwNFtFDJ+8B561h+Xg= 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 5f414514f274ac2b6c32e0cc (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Sat, 22 Aug 2020 16:17:24 GMT Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 53E4EC43395; Sat, 22 Aug 2020 16:17:24 +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 1C45BC43391; Sat, 22 Aug 2020 16:17:18 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 1C45BC43391 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 1/6] pinctrl: qcom: Set IRQCHIP_SET_TYPE_MASKED and IRQCHIP_MASK_ON_SUSPEND flags Date: Sat, 22 Aug 2020 21:46:56 +0530 Message-Id: <1598113021-4149-2-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 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 Reviewed-by: Douglas Anderson 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 a2567e7..1c23f5c 100644 --- a/drivers/pinctrl/qcom/pinctrl-msm.c +++ b/drivers/pinctrl/qcom/pinctrl-msm.c @@ -1243,6 +1243,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