Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp5939313ybi; Wed, 12 Jun 2019 11:03:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqzu3RSgGPlhhEcZU6fCTNFQxBrZKL4x14tffvGaOmtPMDFTrKWHkdvMTt7HDRFa8Q4Y4t4s X-Received: by 2002:a17:90a:b387:: with SMTP id e7mr448580pjr.113.1560362621430; Wed, 12 Jun 2019 11:03:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560362621; cv=none; d=google.com; s=arc-20160816; b=PX8JTvcENuNo/L55MaIkFS4zif/2dVjOMGAZBllMD+sHuBZTDS07pGMe7OZyxPXvC7 Cg6dcXqFQxVVcS9ts2DfgDBZemnnj8M/P2qICEIO49dbwELztANKTiHbx1IlA9xgNg6n Baj6LHxv26vwH6awWXvyaUw/+TCBBCp15rxexK9a+DFAiraHaGEHIVN0YkqORdGwuGzu N7xzwSXtDrR/XjAxoz4KeF2dH+tXT1STck56gbjHRKhsukd6IjG2OfXhRXvjDPtj1+Da up4U8jqbiryqVuJgGlzJsc3BaUmrop5bsqMdu2g9IS1uNfspvqQ4ARf+81X77Q01sSn6 HZ6w== 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; bh=4qQjnwvNUpEIfir9PIPXRigFNrMlGgBYF1vKHP3sWTA=; b=eyeaDNHFhF04TkqHsLHNsNcDXJ7IMX3OjTTzEOKNEZ2cDICluZF3qN/IwVag8/doMJ C0xidp9qqmkhT+3HAhVYFw5t88buN3nA32N87NyxlZdsFeZhs4rKkQ8pui2djtDDV9i4 O7UuBtTebTXA55YMukbgvH/nis1bmdDZidPu03hyjvCA36ComwuvAdf15uE+v/MuBB/P PiUOQpQJIqQExpMZqbyYfVGaCnQeTXbH5dHeq44WRsFPzhOfxQaDRUqwTTZujvU8lVrR c90EWqafqqdMjLdZ/vCUj5E/3PVqe6p4n4QVyjqnn33ShtiFIlnxw/uyVcCJzzvNyWWb 2aqA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-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 u1si298258plb.234.2019.06.12.11.03.27; Wed, 12 Jun 2019 11:03:41 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2439970AbfFLPHA (ORCPT + 99 others); Wed, 12 Jun 2019 11:07:00 -0400 Received: from smtp1.de.adit-jv.com ([93.241.18.167]:38907 "EHLO smtp1.de.adit-jv.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2437171AbfFLPHA (ORCPT ); Wed, 12 Jun 2019 11:07:00 -0400 Received: from localhost (smtp1.de.adit-jv.com [127.0.0.1]) by smtp1.de.adit-jv.com (Postfix) with ESMTP id 13CE63C00C6; Wed, 12 Jun 2019 17:06:56 +0200 (CEST) Received: from smtp1.de.adit-jv.com ([127.0.0.1]) by localhost (smtp1.de.adit-jv.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id oIFPVGe6i6WH; Wed, 12 Jun 2019 17:06:49 +0200 (CEST) Received: from HI2EXCH01.adit-jv.com (hi2exch01.adit-jv.com [10.72.92.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by smtp1.de.adit-jv.com (Postfix) with ESMTPS id 60ACF3C00DD; Wed, 12 Jun 2019 17:06:47 +0200 (CEST) Received: from vmlxhi-102.adit-jv.com (10.72.93.184) by HI2EXCH01.adit-jv.com (10.72.92.24) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 12 Jun 2019 17:06:47 +0200 Date: Wed, 12 Jun 2019 17:06:44 +0200 From: Eugeniu Rosca To: Marc Zyngier CC: Geert Uytterhoeven , Tony Lindgren , Kalle Valo , Eyal Reizer , Simon Horman , "David S. Miller" , Greg Kroah-Hartman , Randy Dunlap , Ulf Hansson , John Stultz , linux-wireless , netdev , Linux Kernel Mailing List , Spyridon Papageorgiou , Joshua Frkuska , "George G . Davis" , Andrey Gusakov , Linux-Renesas , Eugeniu Rosca , Eugeniu Rosca , Thomas Gleixner , Jason Cooper , Linus Walleij , Harish Jenny K N Subject: Re: [PATCH] wlcore/wl18xx: Add invert-irq OF property for physically inverted IRQ Message-ID: <20190612150644.GA22002@vmlxhi-102.adit-jv.com> References: <20190607172958.20745-1-erosca@de.adit-jv.com> <87tvcxncuq.fsf@codeaurora.org> <20190610083012.GV5447@atomide.com> <08bc4755-5f47-d792-8b5a-927b5fbe7619@arm.com> <20190612094538.GA16575@vmlxhi-102.adit-jv.com> <86d0jjglax.wl-marc.zyngier@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <86d0jjglax.wl-marc.zyngier@arm.com> User-Agent: Mutt/1.5.24 (2015-08-30) X-Originating-IP: [10.72.93.184] Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Hi Marc, Thanks for your comment. On Wed, Jun 12, 2019 at 11:17:10AM +0100, Marc Zyngier wrote: > Eugeniu Rosca wrote: > > On Tue, Jun 11, 2019 at 10:00:41AM +0100, Marc Zyngier wrote: [..] > > > We already have plenty of that in the tree, the canonical example > > > probably being drivers/irqchip/irq-mtk-sysirq.c. It should be pretty > > > easy to turn this driver into something more generic. > > > > I don't think drivers/irqchip/irq-mtk-sysirq.c can serve the > > use-case/purpose of this patch. The MTK driver seems to be dealing with > > the polarity inversion of on-SoC interrupts which are routed to GiC, > > whereas in this patch we are talking about an off-chip interrupt > > wired to R-Car GPIO controller. > > And how different is that? The location of the interrupt source is > pretty irrelevant here. The main difference which I sense is that a driver like irq-mtk-sysirq mostly (if not exclusively) deals with internal kernel implementation detail (tuned via DT) whilst adding an inverter for GPIO IRQs raises a whole bunch of new questions (e.g. how to arbitrate between kernel-space and user-space IRQ polarity configuration?). > The point is that there is already a general > scheme to deal with these "signal altering widgets", and that we > should try to reuse at least the concept, if not the code. Since Harish Jenny K N might be working on a new driver doing GPIO IRQ inversion, I have CC-ed him as well to avoid any overlapping work. > > > It looks to me that the nice DTS sketch shared by Linus Walleij in [5] > > might come closer to the concept proposed by Geert? FWIW, the > > infrastructure/implementation to make this possible is still not > > ready. > > Which looks like what I'm suggesting. Then we are on the same page. Thanks. > > M. > > -- > Jazz is not dead, it just smells funny. -- Best Regards, Eugeniu.