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

Kumar Gala galak at kernel.crashing.org
Thu Sep 25 04:30:27 EST 2008


On Sep 19, 2008, at 10:11 AM, Timur Tabi wrote:

> Modify the Freescale Elo / Elo Plus DMA driver so that it can be  
> compiled as
> a module.
>
> The primary change is to stop treating the DMA controller as a bus,  
> and the
> DMA channels as devices on the bus.  This is because the Open  
> Firmware (OF)
> kernel code does not allow busses to be removed, so although we can  
> call
> of_platform_bus_probe() to probe the DMA channels, there is no
> of_platform_bus_remove().  Therefore, the DMA channels must be  
> manually probed.
>
> Signed-off-by: Timur Tabi <timur at freescale.com>
> ---
>
> (Reposting because I forgot to CC: the maintainers)
>
> This patch is for the 2.6.28 kernel.  This patch exposes a bug in  
> the dmatest
> module, so my other patch "dmatest: properly handle duplicate DMA  
> channels"
> should be applied if this patch is applied.
>
> drivers/dma/Kconfig  |   10 ++--
> drivers/dma/fsldma.c |  165 +++++++++++++++++++++++++++++++++ 
> +----------------
> drivers/dma/fsldma.h |    2 +
> 3 files changed, 119 insertions(+), 58 deletions(-)

Dan, any update on this patch?

- k



More information about the Linuxppc-dev mailing list