Re: [PATCH/RFC] dmaengine: add a slave parameter to __dma_request_channel()

From: Linus Walleij
Date: Tue Apr 03 2012 - 16:36:31 EST


On Fri, Mar 30, 2012 at 12:38 PM, Russell King - ARM Linux
<linux@xxxxxxxxxxxxxxxx> wrote:
> On Fri, Mar 30, 2012 at 07:44:09AM +0200, Linus Walleij wrote:
>> However you're right (in some later mail) that we need to distinguish
>> between RX/TX channels at this point, so I can agree we need some
>> additional parameter, but that should be very abstract, not containing
>> any custom stuff or any void * or something like that.
>
> No you don't.  DMA engines can generally deal with transfers operating in
> either direction on a single channel.

You're right, and I came to think of it out of reach from a computer.
The MMC on the RealViews and U300 indeed works like that.
And there has to be one way of doing this instead of hooking it
in at channel selection time, config-time is it.

Yours,
Linus Walleij
--
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/