Re: [PATCH] irq_domain: Standardise legacy/linear domain selection

Grant Likely
2012-05-19T21:00:15Z

On Sat, May 19, 2012 at 2:54 PM, Mark Brown
<broonie@opensource.wolfsonmicro.com> wrote:
> On Sat, May 19, 2012 at 02:22:58PM -0600, Grant Likely wrote:
>
>> I'm looking at killing the legacy mapping entirely which will push
>> changing all the users anyway.  I'm going to hold off on applying this
>> one for a day or so until I'm sure of what it will look like.
>
> I take it you're going to replace the legacy mapping with an equivalent
> thing, though, so the interface is preserved for boards?  In which case
> it'd be more like replacing the linear mapping with a new mapping type
> that can also be used by legacy users I guess?

It will actually be like all legacy users switched to creating an
linear mapping, and then either associating already allocated
irq_descs with that domain or telling the domain to pre-map a specific
range of irq_descs (and manage allocations). Those two use cases will
be separate APIs. I don't think they should be combined (at least
from my current thinking) because it depends on whether or not the
irq_descs are already allocated.

g.

--
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.