Received: by 2002:a25:d80d:0:0:0:0:0 with SMTP id p13csp162297ybg; Sat, 23 May 2020 10:14:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwgmgDSL+6yHRFUQukwy8jB+lq194K/V01TI8jrTqQj5hqQQfmD05smzMD+JT03zcFQyCw7 X-Received: by 2002:a17:906:f85:: with SMTP id q5mr12473101ejj.344.1590254046171; Sat, 23 May 2020 10:14:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590254046; cv=none; d=google.com; s=arc-20160816; b=IT7rq9Yjbs/4zbCOn6TNEuu7InxRQFeB6w401LkVEmP7ApvPPVgdh/kg64JDDO5FdJ a5K61cfMC7CXviWXIKXVqm7IgYy6HrWNGoMiwp/g0l7fvaXtQSyaNDoSePhsMmZaDyyu JZs3gUeyQkmTATwSbiMbKt68fuZ1vJHQQM8aQfF8izIxQdIw7qirzYk5ntWExQl9M8Yp ws1DwPvNLvLbb7I247JUK7FS6lpE/4ggH9s44jcAFczHUD2nUmRdoEByOYpf1Z/59M2W u9F+WX81H6lN1GixBZcD65YXy0C23VcBNq3bEQkhFXiWnQKYWEtsY26RfBRyszjTD2gw SBWw== 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=tNKOX1m7VOglT5q7CC0cb+Jxh7EzZbHZo32PiO4zvx+DZny59FnUF6bKGCrv/vAjNi 9lVOtW43kHv+2PkTd+z69nAFfQFNDaWRssTEk0VBb9hTIXD/k2nYiX8IoDryFyadPvwL k7aeBpXgOAUZMbf40zvE4kvtkx0TQWb1YDDizojeinscW5LMgD+zZ+k/omldq3fySfUz 05xqZqkIYC+e6v3K6XvIH6tU0UAfidS+wBVWFqebfC784+gqBvcrYGlfvY1z5CxrsOqx QcmwcxeL/jZs3iSOkDzf8FBdRa8Z4C82HVgXST2gTfG+XlrWuvWgFgk7VFM3Evr5hSpG O+nA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=RO639A5B; 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 l30si7844186edj.293.2020.05.23.10.13.44; Sat, 23 May 2020 10:14:06 -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=RO639A5B; 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 S2387974AbgEWRLn (ORCPT + 99 others); Sat, 23 May 2020 13:11:43 -0400 Received: from mail26.static.mailgun.info ([104.130.122.26]:59297 "EHLO mail26.static.mailgun.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728739AbgEWRLm (ORCPT ); Sat, 23 May 2020 13:11:42 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1590253902; h=References: In-Reply-To: Message-Id: Date: Subject: Cc: To: From: Sender; bh=q0utGiyDt8WT0d1no5dYJq9oKXeMrSH7v6XiMw0CH6w=; b=RO639A5BL0w1WWVKlUM4NVqQ+h4viTFGKNBKPYXBloTa+7LISJj76lAbP6g4fSHdl0kB5tIG zRcWP+X9R4SsVgdkyNM4mhMBZ9rJvhVVwFMXN54oODaNUbg+NXhrQl+vYkyCNQCx4H5BuSxT JXQGjRsb3KFYkI4HZ9S0tZBRc7I= X-Mailgun-Sending-Ip: 104.130.122.26 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 mxa.mailgun.org with ESMTP id 5ec9594d.7fdc6139adc0-smtp-out-n05; Sat, 23 May 2020 17:11:41 -0000 (UTC) Received: by smtp.codeaurora.org (Postfix, from userid 1001) id A9002C4339C; Sat, 23 May 2020 17:11:41 +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 E3AB8C433C9; Sat, 23 May 2020 17:11:35 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org E3AB8C433C9 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 v2 3/4] pinctrl: qcom: Add msmgpio irqchip flags Date: Sat, 23 May 2020 22:41:12 +0530 Message-Id: <1590253873-11556-4-git-send-email-mkshah@codeaurora.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1590253873-11556-1-git-send-email-mkshah@codeaurora.org> References: <1590253873-11556-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