Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1650912ybh; Tue, 14 Jul 2020 03:45:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxO3WcCgIIb7WmDcJcLcJrAq0BeVF25h4HDWzfvgGZ2Xl1NRVgSI4ZFM9x/wDK8VLHBhKn7 X-Received: by 2002:a17:906:1c05:: with SMTP id k5mr3764389ejg.320.1594723529133; Tue, 14 Jul 2020 03:45:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594723529; cv=none; d=google.com; s=arc-20160816; b=NkpTzmOa9wtZXjqsOpsvaXRsbyJY4Pi9/sy4Db52mCY/MHZiZn2rAsuV0ZItvxxIOx l6UVwE4rLU7hIKtz3Orc+dZifLfCRdounRPE0YmlL8glGnraj25Z0omjIBwb79Fwv2q1 vGHVPGA2p8RCYrONOJwkaHSibWPf2n01UgR2gdeXqf7VmGBcG9cFpUpKVoDaqimHlrHU eedYytlqK8LSpyF0W/Dfltw8jW0q3eNW+zpxba6NA4eaxd8ySsXxwXvW5tcArOZxgcad wCyNFxZ9B9cOV3Crn1y0yAjxIAH5QPOwUy0BDcmvAEiFjBtobBYf+LT71FDKu7h7b6yL go5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dmarc-filter :dkim-signature; bh=tRdAbZo3R01ks+KVQQD/t8o7o2T01LJHhULszvC+t1g=; b=U4YD74OfwlIIYSenpoqmEEaVSY3dG3yXMyt1jsVbhPzHJFkZnomUvkVCi96efJtA// VB+pRNepWk5wmTRSNlcXHkeGAiy+w5Kzhromlk63iOUOifks3pLqEtF9nJx8UNrXMMv2 fDtcEk1bvdbOgpahz/eC1KKqFUFEm9CyXcwrYV9N68EBcB8dzDXOodDtkPRNPO97TStF +V+yG0dlpHm2gsBqszgsvV2NR65Br9w6uUICYqy1JjNl11L4SnutdCaoNxG63+g5eh2i d5HmzGaLFaRtCvATxZZIvo1kErbfLaljaoM5ThO+WU/+MO83Lv2seh+lyB0YgW7TiFup lwiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=B7SSwoUy; 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 lz22si8999054ejb.742.2020.07.14.03.45.05; Tue, 14 Jul 2020 03:45:29 -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=B7SSwoUy; 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 S1726964AbgGNKnr (ORCPT + 99 others); Tue, 14 Jul 2020 06:43:47 -0400 Received: from mail29.static.mailgun.info ([104.130.122.29]:26801 "EHLO mail29.static.mailgun.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726928AbgGNKnq (ORCPT ); Tue, 14 Jul 2020 06:43:46 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1594723426; h=Content-Transfer-Encoding: Content-Type: In-Reply-To: MIME-Version: Date: Message-ID: From: References: Cc: To: Subject: Sender; bh=tRdAbZo3R01ks+KVQQD/t8o7o2T01LJHhULszvC+t1g=; b=B7SSwoUyrHwbWGJHes8MYR+GRb5QzvbW2QSJG9/dWEUIjJ6W0UFoJnx0ac7vSOlcjQ/GNLA0 PdOjLEEattuNdA2JL6HbawAKBonPX/Rss3yHfbTC5VSjYNGNCV8TMo+fx+hrEet54/FAXm79 FyiboL9/+kVtc66riqetcR6Ely0= 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-n09.prod.us-west-2.postgun.com with SMTP id 5f0d8c5ec9bd2efa2ecb0768 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Tue, 14 Jul 2020 10:43:42 GMT Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 58C71C433A0; Tue, 14 Jul 2020 10:43:42 +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,NICE_REPLY_A, SPF_NONE,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from [192.168.29.129] (unknown [49.36.75.62]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: mkshah) by smtp.codeaurora.org (Postfix) with ESMTPSA id 6D7C5C43387; Tue, 14 Jul 2020 10:43:36 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 6D7C5C43387 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 Subject: Re: [PATCH v3 2/5] pinctrl: qcom: Add msmgpio irqchip flags To: Doug Anderson 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 References: <1592818308-23001-1-git-send-email-mkshah@codeaurora.org> <1592818308-23001-3-git-send-email-mkshah@codeaurora.org> From: Maulik Shah Message-ID: <5f6c3eec-5c2c-d546-ac3c-65e7d25c9031@codeaurora.org> Date: Tue, 14 Jul 2020 16:13:33 +0530 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-GB Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 7/14/2020 3:47 AM, Doug Anderson wrote: > 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? it will still be needed, to let the non wakeup capable IRQ masked during suspend. > > >> + | IRQCHIP_SET_TYPE_MASKED; > IIUC adding "IRQCHIP_SET_TYPE_MASKED" is unrelated to the rest of this > series, right? Right, but since we are adding missing flags, i added it together. Thanks, Maulik > > -Doug -- QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation