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



Timur Tabi wrote:
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.

If there's no dependency, why does it matter whether fsldma is already present?

-Scott
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • Re: [PATCH v2] fsl-dma: allow Freescale Elo DMA driver to be compiled as a module
    ... The DMA engine is what handles ... linking DMA clients to DMA drivers. ... whenever a DMA driver registers with the DMA engine. ...
    (Linux-Kernel)
  • Re: [PATCH v2] fsl-dma: allow Freescale Elo DMA driver to be compiled as a module
    ... already present when DMA clients are loaded/initialized and register. ... available when the client drivers load, so that they can use the DMA facilities ... It's not nicer to people reading the code and wondering why, or to people who use it as a module and execute less-well-tested code paths, and I doubt it's a significant addition to boot time to do things in the normal way. ...
    (Linux-Kernel)
  • Re: [PATCH v2] fsl-dma: allow Freescale Elo DMA driver to be compiled as a module
    ... already present when DMA clients are loaded/initialized and register. ... why does it matter whether fsldma is already ... available when the client drivers load, so that they can use the DMA facilities ...
    (Linux-Kernel)
  • Re: PXA270, CE 5.0, DMA performance issue
    ... I'll try adjusting the memory controller registers, ... threads) related to a problem I am encountering with the DMA ... PCMCIA ATA card while the DMA is in process, I drop DMA data, not ...
    (microsoft.public.windowsce.platbuilder)
  • Scatter/Gather Capability
    ... To perform a DMA transfer, ... contiguous mapping registers to account for all the pages in the caller's ... It then loads consecutive mapping registers with the physical ... physically noncontiguous user buffer into a contiguous area of logical space. ...
    (microsoft.public.development.device.drivers)