Re: [PATCH] atmel-mci: fix initialization of dma slave data

From: Hans-Christian Egtvedt
Date: Mon Feb 02 2009 - 10:02:19 EST


On Sat, 31 Jan 2009 09:26:43 -0700
Dan Williams <dan.j.williams@xxxxxxxxx> wrote:

> Subject: atmel-mci: fix initialization of dma slave data
>
> From: Dan Williams <dan.j.williams@xxxxxxxxx>
>
> The conversion of atmel-mci to dma_request_channel missed the
> initialization of the channel dma_slave information. The filter_fn
> passed to dma_request_channel is responsible for initializing the
> channel's private data. This implementation has the additional
> benefit of enabling a generic client-channel data passing mechanism.
>

FWIW I ran this through an ALSA sound driver I'm working on for AVR32,
uses the DW DMA controller and this was exactly what I needed to pass
on the information about the slave. Seems to behave fine on my setup,
I'm working against the 2.6.29-rc3 tag.

> Reviewed-by: Atsushi Nemoto <anemo@xxxxxxxxxxxxx>
> Signed-off-by: Dan Williams <dan.j.williams@xxxxxxxxx>

<snipp patch which adds a private pointer to struct dma_chan>

--
Best regards,
Hans-Christian Egtvedt
--
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/