[PATCH] of: Add generic device tree DMA helpers

Russell King - ARM Linux linux at arm.linux.org.uk
Fri Mar 16 06:57:53 EST 2012


On Thu, Mar 15, 2012 at 05:30:49PM +0100, Cousson, Benoit wrote:
> This was done like IRQ on purpose, because an Interrupt ReQuest line and  
> a DMA Request line are really similar for the HW point of view at IP 
> level.

I'm not sure about that at all levels.  Sure, at hardware level they're
the same, but I think the flat numeric namespace for IRQs has been
proven to be a problem when there's multiple IRQ controllers in the
system.

> I'm not sure what Thierry have done for pwm, but I thing that having the  
> same scheme for reg, irq and dma was what we agreed with Grant during  
> Plumbers.

I really don't like these behind-the-scenes discussions which never then
get followed up in public, and people then start quoting what was "agreed"
as that's the way things must be done.

It's a bit like folk at the recent Linaro Connect apparantly discussing
my machine registry and deciding that it should be shut down.  No one
has yet talked to me about that or even done the curtesy of asking me
what my view is.

As far as I'm concerned for DMA stuff, there is currently no real solution
for a DT representation; TI have asked me to take over the conversion of
OMAP DMA support to the DMA engine API, and I'm not yet convinced that
the existing numbering system is the right solution - especially as
there's several overlapping numberspaces for OMAP DMA numbers which
are SoC specific.


More information about the devicetree-discuss mailing list