Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp253031pxx; Wed, 28 Oct 2020 04:10:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzs8Qf764jQjcQy1GH/ZnGBYYqJ5dCL9HVTYlhGjJMbu6SMNaxHBFbuSUGC8qVVozpbVJRO X-Received: by 2002:a17:907:2110:: with SMTP id qn16mr7147832ejb.133.1603883409055; Wed, 28 Oct 2020 04:10:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603883409; cv=none; d=google.com; s=arc-20160816; b=m4HBWC7ld0zfx74aOJPK9JHKz6A3mGW25T9PPBg15LzY3Vr06rsbxrxygqPbzih+rr ++KrQlfLvhJOiaPOC2zSIcZXLRssBI+fy2geuHAdjue4g/re5EdKLNm9fEWTJmORDqJU BjYUC8UwMbqEpqVAMzbfXv5ghX4vku2Nha2YlW2JmETPT24TCPpmDaYz5e9r5wRsZb/L bxSGJy5dbbJhT9nfioOqgh0/JgIRI8/inZMr9oAUDrSwNLECU++zOqAJpLvwOuGAWDjT CeDueAnDnwtR9ACROUsHrHsF8R1EB06+UnguOY0pUx+wPrt5GQXt/vvC9TxvYysXY78h o91w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=T6m547MX+yNtpYljtx0sikLYTTG8qAHPBgkmIsyTaUQ=; b=K8Kf9h/XlnjJB3tWFLd6+wP++Fc8ODK/SwY9Jpl8ekb3cxi9YOMLA3QkOQE7jdKvJN BY2K+/wYkAjLCVYZeqNkRFN+SnfHzSRRjvkzdTdey1rCULujEG3AniA9jMBB5r/Y5IOd swEuMDcb0x+lKDbjXRh5cwOxvmH8NTTsNYktkQrCbY/owrJC7Rnj2B5ajbq/FQsCGvdB 0m+e8muqO3iY2CNUJZa03kFAhWV06kCGodVr2oRDAlvM7La2SgEMJaJuSheKq8yqzu3x zSOAA3Xu+jRCuda2VkXgLFp6EqVYwjnAi6pHhUavFkDEyyY2BfGG0R6kTR3fJTMUs+O8 FavA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=OoLZ7+B5; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f19si2736409edx.542.2020.10.28.04.09.46; Wed, 28 Oct 2020 04:10:09 -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=pass header.i=@kernel.org header.s=default header.b=OoLZ7+B5; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1786359AbgJ0O7v (ORCPT + 99 others); Tue, 27 Oct 2020 10:59:51 -0400 Received: from mail.kernel.org ([198.145.29.99]:51354 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1774823AbgJ0OwE (ORCPT ); Tue, 27 Oct 2020 10:52:04 -0400 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 41E89207DE; Tue, 27 Oct 2020 14:52:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603810322; bh=fslIBsPHp4jjoZR+pdao1rJp6y2LLiemfcDXhHuFw5c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=OoLZ7+B5a0SBUB0TiQmsbmjuSfQLJt5wB1zoEnW19eHfWCCRWzd5hbdlc9b4vWmEW AeQTmJqKdbpVGTkmt10Nl8B3928OBLyZ+a1oJTCU44QxAyDfLM0Gc7VzNxSbd8l9pG +CIIRUfOfI9So0wtB1Qpteo0itbV/ITF099iWufg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Maulik Shah , Marc Zyngier , Stephen Boyd , Douglas Anderson , Bjorn Andersson , Linus Walleij , Sasha Levin Subject: [PATCH 5.8 098/633] pinctrl: qcom: Set IRQCHIP_SET_TYPE_MASKED and IRQCHIP_MASK_ON_SUSPEND flags Date: Tue, 27 Oct 2020 14:47:21 +0100 Message-Id: <20201027135527.296099812@linuxfoundation.org> X-Mailer: git-send-email 2.29.1 In-Reply-To: <20201027135522.655719020@linuxfoundation.org> References: <20201027135522.655719020@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Maulik Shah [ Upstream commit c5f72aeb659eb2f809b9531d759651514d42aa3a ] Both IRQCHIP_SET_TYPE_MASKED and IRQCHIP_MASK_ON_SUSPEND flags are already set for msmgpio's parent PDC irqchip but GPIO interrupts do not get masked during suspend or during setting irq type since genirq checks irqchip flag of msmgpio irqchip which forwards these calls to its parent PDC irqchip. Add irqchip specific flags for msmgpio irqchip to mask non wakeirqs during suspend and mask before setting irq type. Masking before changing type make sures any spurious interrupt is not detected during this operation. Fixes: e35a6ae0eb3a ("pinctrl/msm: Setup GPIO chip in hierarchy") Signed-off-by: Maulik Shah Signed-off-by: Marc Zyngier Tested-by: Stephen Boyd Reviewed-by: Douglas Anderson Acked-by: Bjorn Andersson Acked-by: Linus Walleij Link: https://lore.kernel.org/r/1601267524-20199-2-git-send-email-mkshah@codeaurora.org Signed-off-by: Sasha Levin --- 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 c322f30a20648..a28a96ac2b671 100644 --- a/drivers/pinctrl/qcom/pinctrl-msm.c +++ b/drivers/pinctrl/qcom/pinctrl-msm.c @@ -1226,6 +1226,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) { -- 2.25.1