lkml.org 
[lkml]   [2012]   [May]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] irq_domain: Standardise legacy/linear domain selection
On Sat, May 19, 2012 at 02:59:51PM -0600, Grant Likely wrote:

> 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.

Hrm. Given that the target for this API is drivers that mostly don't
care and are only supporting the current linear mappings in order to
allow their GPIOs to be used with generic drivers that only want an IRQ
I'd expect we'll wind up with a similar helper somehow. Copying a
number around for irq_start isn't much hassle for individual drivers but
having to worry about more than that seems like too much effort, they
shouldn't have to care about the management of irq_descs. It'd be more
work and it'd make it more painful for platforms to change between the
preallocated and dynamic models.
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2012-05-20 01:01    [W:0.122 / U:0.088 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site