[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <8930de04d7f40b84068e4478a12fc496d53930c9.camel@kernel.crashing.org>
Date: Thu, 06 Jun 2019 08:02:13 +1000
From: Benjamin Herrenschmidt <benh@...nel.crashing.org>
To: Marc Zyngier <marc.zyngier@....com>,
Talel Shenhar <talel@...zon.com>, nicolas.ferre@...rochip.com,
jason@...edaemon.net, mark.rutland@....com,
mchehab+samsung@...nel.org, robh+dt@...nel.org,
davem@...emloft.net, shawn.lin@...k-chips.com, tglx@...utronix.de,
devicetree@...r.kernel.org, gregkh@...uxfoundation.org,
linux-kernel@...r.kernel.org
Cc: dwmw@...zon.co.uk, jonnyc@...zon.com, hhhawa@...zon.com,
ronenk@...zon.com, hanochu@...zon.com, barakw@...zon.com
Subject: Re: [PATCH v2 2/2] irqchip: al-fic: Introduce Amazon's Annapurna
Labs Fabric Interrupt Controller Driver
On Wed, 2019-06-05 at 13:22 +0100, Marc Zyngier wrote:
>
> > + * This is generally fixed depending on what pieces of HW it's wired up
> > + * to.
> > + *
> > + * We configure it based on the sensitivity of the first source
> > + * being setup, and reject any subsequent attempt at configuring it in a
> > + * different way.
>
> Is that a reliable guess? It also strikes me that the DT binding doesn't
> allow for the trigger type to be passed, meaning the individual drivers
> have to request the trigger as part of their request_irq() call. I'd
> rather you have a complete interrupt specifier in DT, and document the
> various limitations of the HW.
Actually the DT does, but Talel forgot to update the "example" part of
the binding patch. The description does say 2 cells.
This is the best approach imho (translation: I asked Talel to do it
this way :-) The other option which I don't like is to stick to
#interrupt-cells = 1, and have a separate property in the interrupt
controller node to indicate whether it needs to be configured as level
or edge.
These FICs are used for what is generally fixed wires inside the SoC,
so it doesn't matter much either way, but I prefer having it self
configured based on source just in case a future implementation doesn't
have the limitation of all inputs having the same trigger type.
Cheers,
Ben.
Powered by blists - more mailing lists