Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1311416ybh; Mon, 13 Jul 2020 15:25:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzYc1vhClEHFbzW7yMt0Zylg+SsAHMUsGegggSFxRkWJnKagRvhHHZ4RfqtpnAn3siC9z3t X-Received: by 2002:a50:8c06:: with SMTP id p6mr1504955edp.146.1594679134166; Mon, 13 Jul 2020 15:25:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594679134; cv=none; d=google.com; s=arc-20160816; b=N8ssrnOWu/iP+VegzKkb2ZPbm4qWGfcn5/hbG/J0DWxdC3n6lBnkb/BfGYU2VpKzKr fBLzYQaDBN6lmPwUK73nltxvYrhbpmLBFed8p36phuq30xnQru7l+ZYOGiL/SrVjnqwE k9cZ1xqhuGByUPSXQtJMUuJBpmJknr3evILC4O010Km+19sK5+JPkaluJAQreXmXpk9o Y/Q3z9prmy4tLJhtW+bferP7eagFR2YxAwrwcsJQkWKIKS6BhrgK3GIZc+8y0aRsak8Q /JcsfWcvblq3+AwpIYJb7qI+tX5U+bm1HUxm4pq8g3llHGZTQVBhBjE34uO36t2nN8DO u/Rw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=Q6bh/1yGmZao7f6eku70ZfEjUaW4mF5NYpD2HrmZqeI=; b=U9g0rLKyBooQB6YOoOZo7iGe22O9pwv5ixpM9uEmlu5i2McnZmWvrniY4jwtHW8M5N 7inNcZ7XBcQ+YlzRG9BEwxBfyH3g2caF5OvxZf1lJbZoQ7GDUIfmpR1W6/DOoATNDrfC dvXN2cV9ZKPImCXr4uZziIx0Zuc0iJB1tmhnMfJDs1DoHgu3MD4ztqweZxr1eCKrpegU J4U+QQYvqWyKzu22CBfcdrLjG14b7CJzoAuyEOrgtczSKIJa9CHc8NlK5JWlgJPjpyij h6ANvrWRB30JwneaWMP/xxoeKHFsynv1L4pW/dbEujgw7SxAr4ju1OiP6SvwcN6tztQD J91w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="j/XT5yyF"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h22si10535095ejf.599.2020.07.13.15.25.10; Mon, 13 Jul 2020 15:25:34 -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=@chromium.org header.s=google header.b="j/XT5yyF"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726582AbgGMWVE (ORCPT + 99 others); Mon, 13 Jul 2020 18:21:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45668 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726356AbgGMWR5 (ORCPT ); Mon, 13 Jul 2020 18:17:57 -0400 Received: from mail-vk1-xa44.google.com (mail-vk1-xa44.google.com [IPv6:2607:f8b0:4864:20::a44]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 26B0CC061755 for ; Mon, 13 Jul 2020 15:17:57 -0700 (PDT) Received: by mail-vk1-xa44.google.com with SMTP id b205so3203925vkb.8 for ; Mon, 13 Jul 2020 15:17:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Q6bh/1yGmZao7f6eku70ZfEjUaW4mF5NYpD2HrmZqeI=; b=j/XT5yyFl2LbkH2lZtHlwHq+F8pmbt1Tm85qFPI0z7iEFb3EPc0mzXcrqsqbTS90ZE m+To0qUhXZYncSMgOThqPs0W9mh1DSWxfcv8lMcNrpkhXIgav4O5Rdvp3cc2hXPZIt4/ scL1jsPMSGprQyr2BJIXvr5HxYY7wWu9lH3s8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Q6bh/1yGmZao7f6eku70ZfEjUaW4mF5NYpD2HrmZqeI=; b=tLoqvo8qvYno2FaRUrq9SaCVT2nFD4hLQRNL/+U7V/cwPiKU+NZsNsFpZTGWiOxsJq CauJoa3Yf1pZUTEakHNJ+zd5IBf1pBg5zugamKD85bne6FdPPmqdkF7vHgivy2BvWa7N uBH213hYZhzNo5x1Wi8i9kWVJ5kiUvR/r9O3saUa4rNnJwM4SRjZArsnat9xa4hvCFlo 3RkqoGbzd665ORklDxj6BHWjQjrk30BsaZa4LABT2sJ/a+k94VRH4SNFIyE/J+Rr8X0u Os358qLrdR0Sq+m6HzoHmBgNW5XKP922eUbfPP9HYq6VgwX984wzwy6pgenUdKdEocac 2pgg== X-Gm-Message-State: AOAM531++TUu8PS30UfA3WlFxmMUiJzZOqTWYgMiA0cfRTTfvBA5TXnz 1XKrrBB2unvrw3qk1cIXVuSz8lY8ywc= X-Received: by 2002:a1f:930f:: with SMTP id v15mr1627717vkd.63.1594678676074; Mon, 13 Jul 2020 15:17:56 -0700 (PDT) Received: from mail-vs1-f42.google.com (mail-vs1-f42.google.com. [209.85.217.42]) by smtp.gmail.com with ESMTPSA id u22sm2209810vkb.19.2020.07.13.15.17.54 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 13 Jul 2020 15:17:55 -0700 (PDT) Received: by mail-vs1-f42.google.com with SMTP id k7so7505641vso.2 for ; Mon, 13 Jul 2020 15:17:54 -0700 (PDT) X-Received: by 2002:a05:6102:30b5:: with SMTP id y21mr1130601vsd.42.1594678673804; Mon, 13 Jul 2020 15:17:53 -0700 (PDT) MIME-Version: 1.0 References: <1592818308-23001-1-git-send-email-mkshah@codeaurora.org> <1592818308-23001-3-git-send-email-mkshah@codeaurora.org> In-Reply-To: <1592818308-23001-3-git-send-email-mkshah@codeaurora.org> From: Doug Anderson Date: Mon, 13 Jul 2020 15:17:42 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v3 2/5] pinctrl: qcom: Add msmgpio irqchip flags To: Maulik Shah Cc: Bjorn Andersson , Marc Zyngier , LinusW , Stephen Boyd , Evan Green , Matthias Kaehlcke , LKML , linux-arm-msm , "open list:GPIO SUBSYSTEM" , Andy Gross , Thomas Gleixner , Jason Cooper , Rajendra Nayak , Lina Iyer , Srinivas Rao L Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Mon, Jun 22, 2020 at 2:32 AM Maulik Shah wrote: > > 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 I haven't tested it, but with my suggestion in patch #4 to use irq_suspend and irq_resume, I presume adding IRQCHIP_MASK_ON_SUSPEND is no longer needed? > + | IRQCHIP_SET_TYPE_MASKED; IIUC adding "IRQCHIP_SET_TYPE_MASKED" is unrelated to the rest of this series, right? -Doug