Skip to contentSkip to conversation

DMA_ENGINE: can't use it without selecting a dma engine driver

DISCUSSION Dragos Tatulea 2 participants 4 messages Jun 16, 2009 – Jun 17, 2009

lore
Share & tools
lore
#0 lore raw

Hi,

Just discovered that it's impossible to select the dma engine without compiling a dma engine driver from the kernel. What if I want to use a different dma engine?

I'm using CONFIG_DMADEVICES=y CONFIG_DMA_ENGINE=y (dependencies included),

Thanks,
Dragos

#1 lore raw
Quoted 6 lines · Dragos Tatulea

Hi,

       Just discovered that it's impossible to select the dma engine without compiling a dma engine driver from the kernel. What if I want to use a different dma engine?

Create a Kconfig entry for your driver in drivers/dma/Kconfig and have it "select DMA_ENGINE".

#2 lore raw

Hi,

Quoted 8 lines
Quoted 5 lines

       Just discovered that it's impossible to select the dma engine without compiling a dma engine driver from the kernel. What if I want to use a different dma engine?

Create a Kconfig entry for your driver in drivers/dma/Kconfig and have it "select DMA_ENGINE".

That's what I want to avoid. The dma engine driver is out of tree.

What is the rationale behind this? It seems (to me) impossible to have all such drivers in upstream.

Thanks,
Dragos

#3 lore raw
Quoted 6 lines · Dragos Tatulea

Hi,

Quoted 4 lines
Quoted 4 lines

Just discovered that it's impossible to select the dma engine
without compiling a dma engine driver from the kernel. What if I want to use a different dma engine?

Quoted 6 lines
Quoted 2 lines

Create a Kconfig entry for your driver in drivers/dma/Kconfig and have it "select DMA_ENGINE".

That's what I want to avoid. The dma engine driver is out of tree.

What is the rationale behind this? It seems (to me) impossible to have all such drivers in upstream.

It is very straightforward to have all drivers upstream, just send the code [1].

The rationale for this configuration scheme is to turn off a lot of unnecessary code when we know at build time that a dma driver will never be loaded.

If you must keep your driver out of tree simply maintain another out of tree patch that allows DMA_ENGINE to be manually enabled.

Regards,
Dan

[1]: http://www.kernel.org/doc/Documentation/SubmittingDrivers