[RFC] dmaengine: add new api for preparing simple slave transfer
linus.walleij at linaro.org
Tue Jun 14 01:59:29 EDT 2011
2011/6/14 Raju, Sundaram <sundaram at ti.com>:
> Yes, the hardware can skip over sequences like that.
> I also thought about your suggestion, at first before submitting the RFC.
> But I dint pursue this because, this ioctl() call has to be made before
> every single prepare call.
It's not an ioctl(), ioctl()s would be expensive since they involve
userspace to kernelspace context switches. It is just "ioctl()-like".
It is a simple, fast function call.
> I may have to end up using this if we decide not to change the API
> signature for prepare APIs.
Is it really so bad? It is a custom configuration after all. Even if
there were many DMACs out there supporting it, we'd probably
model it like this, just pass something like DMA_STRIDE_CONFIG
instead of something named after a specific slave controller.
This way DMACs that didn't support striding could NACK a
transfer for device drivers requesting it and then it could figure
out what to do.
If we can get some indication as to whether more DMACs can
do this kind of stuff, we'd maybe like to introduce
DMA_STRIDE_CONFIG already now.
More information about the linux-arm-kernel