From: Eugeniu Rosca <erosca@de.adit-jv.com>
To: Marc Zyngier <marc.zyngier@arm.com>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>,
Tony Lindgren <tony@atomide.com>,
Kalle Valo <kvalo@codeaurora.org>, Eyal Reizer <eyalr@ti.com>,
Simon Horman <horms+renesas@verge.net.au>,
"David S. Miller" <davem@davemloft.net>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Randy Dunlap <rdunlap@infradead.org>,
Ulf Hansson <ulf.hansson@linaro.org>,
John Stultz <john.stultz@linaro.org>,
linux-wireless <linux-wireless@vger.kernel.org>,
netdev <netdev@vger.kernel.org>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
Spyridon Papageorgiou <spapageorgiou@de.adit-jv.com>,
Joshua Frkuska <joshua_frkuska@mentor.com>,
"George G . Davis" <george_davis@mentor.com>,
Andrey Gusakov <andrey.gusakov@cogentembedded.com>,
Linux-Renesas <linux-renesas-soc@vger.kernel.org>,
Eugeniu Rosca <roscaeugeniu@gmail.com>,
Eugeniu Rosca <erosca@de.adit-jv.com>,
Thomas Gleixner <tglx@linutronix.de>,
Jason Cooper <jason@lakedaemon.net>,
Linus Walleij <linus.walleij@linaro.org>,
Harish Jenny K N <harish_kandiga@mentor.com>
Subject: Re: [PATCH] wlcore/wl18xx: Add invert-irq OF property for physically inverted IRQ
Date: Wed, 12 Jun 2019 17:06:44 +0200 [thread overview]
Message-ID: <20190612150644.GA22002@vmlxhi-102.adit-jv.com> (raw)
In-Reply-To: <86d0jjglax.wl-marc.zyngier@arm.com>
Hi Marc,
Thanks for your comment.
On Wed, Jun 12, 2019 at 11:17:10AM +0100, Marc Zyngier wrote:
> Eugeniu Rosca <erosca@de.adit-jv.com> 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.
next prev parent reply other threads:[~2019-06-12 15:07 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-06-07 17:29 Eugeniu Rosca
2019-06-10 7:01 ` Kalle Valo
2019-06-10 8:30 ` Tony Lindgren
2019-06-11 8:45 ` Geert Uytterhoeven
2019-06-11 9:00 ` Marc Zyngier
2019-06-12 9:45 ` Eugeniu Rosca
[not found] ` <86d0jjglax.wl-marc.zyngier@arm.com>
2019-06-12 15:06 ` Eugeniu Rosca [this message]
2019-06-13 4:36 ` Harish Jenny K N
2019-07-24 11:14 ` Kalle Valo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190612150644.GA22002@vmlxhi-102.adit-jv.com \
--to=erosca@de.adit-jv.com \
--cc=andrey.gusakov@cogentembedded.com \
--cc=davem@davemloft.net \
--cc=eyalr@ti.com \
--cc=geert@linux-m68k.org \
--cc=george_davis@mentor.com \
--cc=gregkh@linuxfoundation.org \
--cc=harish_kandiga@mentor.com \
--cc=horms+renesas@verge.net.au \
--cc=jason@lakedaemon.net \
--cc=john.stultz@linaro.org \
--cc=joshua_frkuska@mentor.com \
--cc=kvalo@codeaurora.org \
--cc=linus.walleij@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-renesas-soc@vger.kernel.org \
--cc=linux-wireless@vger.kernel.org \
--cc=marc.zyngier@arm.com \
--cc=netdev@vger.kernel.org \
--cc=rdunlap@infradead.org \
--cc=roscaeugeniu@gmail.com \
--cc=spapageorgiou@de.adit-jv.com \
--cc=tglx@linutronix.de \
--cc=tony@atomide.com \
--cc=ulf.hansson@linaro.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®