Thread (9 messages) 9 messages, 4 authors, 2008-09-27

Re: [PATCH v2] fsl-dma: allow Freescale Elo DMA driver to be compiled as a module

flat view

From: Timur Tabi <hidden>
Date: 2008-09-25 18:48:05
Also in: lkml

On Thu, Sep 25, 2008 at 1:40 PM, Scott Wood [off-list ref] wrote:
If there's a dependency there, how will it work when this is built as a
module?
There are no dependencies.  fsldma registers with the DMA engine,
which is always built in-kernel.  The DMA engine is what handles
linking DMA clients to DMA drivers. The DMA clients get a callback
whenever a DMA driver registers with the DMA engine.  If the DMA
driver is already registered when the client registers, then the
client will get a callback immediately after it registers.

I chose subsys_initcall() to increase the probability that fsldma is
already present when DMA clients are loaded/initialized and register.

-- 
Timur Tabi
Linux kernel developer at Freescale
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help