Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp4066135imm; Mon, 20 Aug 2018 09:13:28 -0700 (PDT) X-Google-Smtp-Source: AA+uWPwLEDemjNqqHhTwB3fP1cD/sjbufSvGZ1+pelFFvaH2Atit9BAmnbW7uOx2pfxyT+NkDnhR X-Received: by 2002:a62:768f:: with SMTP id r137-v6mr48761625pfc.250.1534781608507; Mon, 20 Aug 2018 09:13:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534781608; cv=none; d=google.com; s=arc-20160816; b=iCX+GI0O0S1AMYWTbsO8R1Q2PkeK35/z7c8Qy9s0+PIe2aVDFM9crGrglO7skMxeOc JeHWVRiVJxd4hGCLThaJtxWxWTDzbin0qMPEwZEhYvrqD5you1G8Qk5aAiL77qbUS3OU JZNjI2ipRjA/j9tutCjx0jQ76whbWzYv/wycjPYovfCL2AmdQOHaaX0bMKb/Ci5MnGpc 5XANPqFCUM4gKZxKNirztFmWhL+ozd0JVa6wzsydqv3pfTGTNxmepc0336zmuT97G/BE 4dAAUp11QTq1xhy3DhqIr3wFSOvs6bQY0ocvnCv79hR1R9FXrOzP2BlW2SP7uBVyhH11 U5MA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dmarc-filter:dkim-signature:dkim-signature :arc-authentication-results; bh=QLMWee+ypJWj8NH6Y6sIz8Ntbt8wjgrKSMfudygNnTM=; b=rc/C7116UUfdiESwTfVLJIgEA+X8Pn4cXQ4K57Z46FumEENprONyyDkNBuz6bWcgSf JFJM84CLr+/iqSn/B7ITw+Z70mgJNYtQ6xKskGnLjbPgFF7lejFlbknzOTqs2gMiHU2B tjCfPwwbZbiCq/JRD7vGI2Ao9qt5z6FSMVc3reXHCHqOu1C2kt34Y9jVkYWe9mc1OTeb SjQf4foyA7nyg7qobuGKegnUqiobW/sEf8dAYyBknRKHKnVSJUf7Dz9h4oUwZDBF3LgI Vway9pYFfxtjuVLMBQQxCol+3tCM08noRlYIdqz5XL68pl1kUid3tS2qLQoTPfmARAOY b1QA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b="RI8d/yzU"; dkim=pass header.i=@codeaurora.org header.s=default header.b=hqWPMx0B; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i14-v6si2980227pgm.245.2018.08.20.09.13.12; Mon, 20 Aug 2018 09:13:28 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b="RI8d/yzU"; dkim=pass header.i=@codeaurora.org header.s=default header.b=hqWPMx0B; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726670AbeHTTGL (ORCPT + 99 others); Mon, 20 Aug 2018 15:06:11 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:34698 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726021AbeHTTGL (ORCPT ); Mon, 20 Aug 2018 15:06:11 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 2FBFB6147F; Mon, 20 Aug 2018 15:50:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1534780201; bh=g+8nx+Dyb7/VwQIyuI7+rVVx3sesOQA8DlODxwKCaDM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=RI8d/yzUpgiGKKqsp4mA9e62V7cjyVV7eyviKUkjanbvxuhp7buPWCZW39xwo83ea XT4BkAGs2K5X4ojLXT+5iHkERwbdJWcxdnYFpgM+qK11htjgZ6MISiLmblqbh24e3+ OUrnLIfZ3xUk5uU+038HjnUeMW6BpaTP71seLfdQ= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0 Received: from localhost (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: ilina@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 20E0D6144B; Mon, 20 Aug 2018 15:49:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1534780200; bh=g+8nx+Dyb7/VwQIyuI7+rVVx3sesOQA8DlODxwKCaDM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=hqWPMx0BMFtk68/jP1iNWHYSCGOC9rcIsCUUsoVQl8eZbgHvV1BmvB9kWJSk9ruUQ 8RPbiWiX6xeChtcKonl6X43XYSmLQIGKAZdM7y+UqCdfE3jH+ya8UC5wE8CWAdO2rL SgfBeSOS0rlZMFbIjqfByJL8z7n2v2+CT5QpTBLc= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 20E0D6144B Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=ilina@codeaurora.org Date: Mon, 20 Aug 2018 09:49:59 -0600 From: Lina Iyer To: Marc Zyngier Cc: bjorn.andersson@linaro.org, sboyd@kernel.org, evgreen@chromium.org, linus.walleij@linaro.org, rplsssn@codeaurora.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, rnayak@codeaurora.org, devicetree@vger.kernel.org, andy.gross@linaro.org, dianders@chromium.org Subject: Re: [PATCH RESEND v1 2/5] drivers: pinctrl: msm: enable PDC interrupt only during suspend Message-ID: <20180820154959.GS5081@codeaurora.org> References: <20180817191026.32245-1-ilina@codeaurora.org> <20180817191026.32245-3-ilina@codeaurora.org> <86a7pjq0l1.wl-marc.zyngier@arm.com> <20180820152629.GR5081@codeaurora.org> <047d37fb-1011-0650-6517-e6052ba47a18@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <047d37fb-1011-0650-6517-e6052ba47a18@arm.com> User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 20 2018 at 09:34 -0600, Marc Zyngier wrote: >On 20/08/18 16:26, Lina Iyer wrote: >> On Sat, Aug 18 2018 at 07:13 -0600, Marc Zyngier wrote: >>> Hi Lina, >>> >>> On Fri, 17 Aug 2018 20:10:23 +0100, >>> Lina Iyer wrote: > >[...] > >>>> @@ -920,6 +928,8 @@ static int msm_gpio_pdc_pin_request(struct irq_data *d) >>>> } >>>> >>>> irq_set_handler_data(d->irq, irq_get_irq_data(irq)); >>>> + irq_set_handler_data(irq, d); >>>> + irq_set_status_flags(irq, IRQ_DISABLE_UNLAZY); >>> >>> Could you explain what this is trying to do? I'm trying to understand >>> this code, but this function isn't in 4.18... >>> >> Oh, I have been able to test only on 4.14 so far. The flag does seem to >> exist at least, I didn't get a compiler error. >> >> I read this in kernel/irq/chip.c - >> >> If the interrupt chip does not implement the irq_disable callback, >> a driver can disable the lazy approach for a particular irq line by >> calling 'irq_set_status_flags(irq, IRQ_DISABLE_UNLAZY)'. This can >> be used for devices which cannot disable the interrupt at the >> device level under certain circumstances and have to use >> disable_irq[_nosync] instead. >> >> And interpreted this as something that this would prevent 'relaxed' >> disable. I am enabling and disabling the IRQ in suspend path, that I >> thought this would help avoid issues caused by late disable. Am I >> mistaken? > >Sorry, I wasn't clear enough. I'm talking about what you're trying to do >in this particular function (msm_gpio_pdc_pin_request), which doesn't >exist in 4.18. Short of having a bit of context, I can hardly review this. > Sorry, my patch generation during the resend is messed up. Seems like I didn't send that patch out during the resend. -- Lina