[PATCH 1/2] mtd: sh_flctl: Setup and release DMA channels

Vikram Narayanan vikram186 at gmail.com
Sun Sep 23 10:31:16 EDT 2012


On 9/23/2012 5:31 PM, Bastian Hecht wrote:
> The code probes if DMA channels can get allocated and tears them down at
> removal/failure if needed.
>
> Based on Guennadi Liakhovetski's code from the sh_mmcif driver.
>
> Signed-off-by: Bastian Hecht<hechtb at gmail.com>
> ---
> Based on l2-mtd with reverted commit e26c113b4130aefa1d8446602bb5b05cfd646bfe.
>
>   drivers/mtd/nand/sh_flctl.c  |   74 ++++++++++++++++++++++++++++++++++++++++++
>   include/linux/mtd/sh_flctl.h |   10 ++++++
>   2 files changed, 84 insertions(+), 0 deletions(-)
>
> diff --git a/drivers/mtd/nand/sh_flctl.c b/drivers/mtd/nand/sh_flctl.c
> index 4fbfe96..2cf6871 100644
> --- a/drivers/mtd/nand/sh_flctl.c
> +++ b/drivers/mtd/nand/sh_flctl.c
> @@ -856,6 +856,76 @@ static irqreturn_t flctl_handle_flste(int irq, void *dev_id)
>   	return IRQ_HANDLED;
>   }
>
> +void flctl_setup_dma(struct sh_flctl *flctl)

static?

~Vikram



More information about the linux-mtd mailing list