Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp758696imm; Thu, 6 Sep 2018 09:39:33 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZpFbFNNjmNsSwZ+xoq5BYKcX8Atg/EAFC6zTi+9Sb6UqYXzKPm71pS9T+4tjpwVDC6hIPI X-Received: by 2002:a62:7f0c:: with SMTP id a12-v6mr3708279pfd.257.1536251973722; Thu, 06 Sep 2018 09:39:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536251973; cv=none; d=google.com; s=arc-20160816; b=NZ6uqzOIOXvJSNyMjhvGuLkalxzislwEfGh5Ps3R7oo/rssrgWoeW/CesIPnlA85le tj4Z2pxC5WqMX4fB/A5ac5wilJjKGBTApYaDb8blFY6e96P26yiVrilc0RQPrNjqpVtr eyq0oEDyB6bv8+3bOhTAyRQBtemjJ39XrxOYY+6qcChTDN0JubmNBQwOr7WDX4niGaEO pfv8PRTigRrgNXKVL9qaQ8JSuScIiq2NFMdnFwaH91ZJcTxpusouyF2JRjsqZzrv2Gqk R05Oc5lIEEQwFsrdabVERc/Uz1ctErhI1/OZCGAt8NQ4JbQxCPhVTgU0jcEmAJTYI9E6 +CrQ== 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; bh=o6KKQR4Rkb9G+dzQw9TfuGDpjxlRpUPJ2k5JOZwq/0E=; b=a3wBL5RqhCzv4ZwkA0TI0rMKOYWggqRn5M/Z7RRPEOqwzAKxbDGl4KllAKAOSkx6+S NuLO7LUSHbduN4IbSB4hG7VJ4Af7Xe2270QY4nuACxr8ApRPKeoND21fh+ReO1dcGERo 2JQLX8Qm0M7Hli1CLBWRqjKItGtnLjCekKxbEoEgytK134VmXRaPLslP2VHsz39sdUNJ XWlVips+Kq9/hIHluG2kiSS0CouONTji9NRn36sPAMaae5e8y0XoT1uvKyYqfPC/T8ej WmcJe4l2ifdbyOwfmLEZeCSiCGxxIuLPRcGquUoDBUBw9SPG9+pjetvNB4Job24rr5za K+lw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=oo1siWCk; dkim=pass header.i=@codeaurora.org header.s=default header.b=oo1siWCk; 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 i9-v6si5429393pgk.403.2018.09.06.09.39.17; Thu, 06 Sep 2018 09:39:33 -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=oo1siWCk; dkim=pass header.i=@codeaurora.org header.s=default header.b=oo1siWCk; 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 S1728168AbeIFVNH (ORCPT + 99 others); Thu, 6 Sep 2018 17:13:07 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:51160 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725978AbeIFVNH (ORCPT ); Thu, 6 Sep 2018 17:13:07 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id DFEE9607C6; Thu, 6 Sep 2018 16:36:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1536251808; bh=o6KKQR4Rkb9G+dzQw9TfuGDpjxlRpUPJ2k5JOZwq/0E=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=oo1siWCkvaJBA6PPYUUBcqeAGHQunq3qG1Mdnyn+H6GCUXm3afjEjiRTgqnBIkno1 XHe4j20vw6M1axNmI3gFrCwcxMUQ6YwUBfiNoLs78Bi7q/4zsROBpQ6xx73hHeEIM5 MjdhV/mcZ3fyuI7gEJlHh23BoSB0WdGMFFdgGaGQ= 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 28E5A606FA; Thu, 6 Sep 2018 16:36:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1536251808; bh=o6KKQR4Rkb9G+dzQw9TfuGDpjxlRpUPJ2k5JOZwq/0E=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=oo1siWCkvaJBA6PPYUUBcqeAGHQunq3qG1Mdnyn+H6GCUXm3afjEjiRTgqnBIkno1 XHe4j20vw6M1axNmI3gFrCwcxMUQ6YwUBfiNoLs78Bi7q/4zsROBpQ6xx73hHeEIM5 MjdhV/mcZ3fyuI7gEJlHh23BoSB0WdGMFFdgGaGQ= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 28E5A606FA 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: Thu, 6 Sep 2018 10:36:47 -0600 From: Lina Iyer To: Stephen Boyd Cc: bjorn.andersson@linaro.org, evgreen@chromium.org, linus.walleij@linaro.org, marc.zyngier@arm.com, 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: <20180906163647.GE28215@codeaurora.org> References: <20180817191026.32245-1-ilina@codeaurora.org> <20180817191026.32245-3-ilina@codeaurora.org> <153509896098.28926.3622217918056498792@swboyd.mtv.corp.google.com> <20180824171432.GM5081@codeaurora.org> <153540005334.129321.18196967002233663397@swboyd.mtv.corp.google.com> <20180904210934.GA23990@codeaurora.org> <153609843656.119890.7258329648640765778@swboyd.mtv.corp.google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <153609843656.119890.7258329648640765778@swboyd.mtv.corp.google.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 Tue, Sep 04 2018 at 16:00 -0600, Stephen Boyd wrote: >Quoting Lina Iyer (2018-09-04 14:09:34) >> On Mon, Aug 27 2018 at 14:01 -0600, Stephen Boyd wrote: >> > >> >Can't we just configure a different chained IRQ handler with >> >irq_set_chained_handler_and_data() for each of the GPIO IRQs that are >> >handled by PDC to be the interrupts provide by the PDC irq controller >> >that match the GPIOs? And then set their parent irq with >> >irq_set_parent() for completeness? And also move those GPIOs from the >> >existing msm_gpio irqchip to a different PDC gpio irqchip that does >> >nothing besides push irqchip calls up to the PDC irqchip? Then we don't >> >even have to think about resending anything and we can rely on PDC to do >> >all the interrupt sensing all the time but still provide the irqs from >> >the GPIO controller. >> > >> Seems like the irqchips need to be in hierarchy for this to work, which >> is not the case with TLMM and the PDC, currently. >> > >Why? Does something mandate that the chained irq is also the >hierarchical parent irqchip? > All the _parent() functions like irq_set_wake_parent() etc need parent_data to be set, which is only set during hierarchy. -- Lina