[PATCH 2/2] ARM: shmobile: sdhi: remove DMA hardware dependencies

Guennadi Liakhovetski g.liakhovetski at gmx.de
Fri Jun 7 09:12:10 EDT 2013


On Fri, 7 Jun 2013, Arnd Bergmann wrote:

[snip]

> I think that is a flaw in the dmaengine driver. I don't actually know how
> any dma-engine driver could use dmaengine_slave_config to pick the request
> line, since that is something the driver should not know at the time
> it calls dmaengine_slave_config().
> 
> It's probably best to change the shdma driver to just ignore the slave_id
> value in slave_config, like most other drivers to.

This is how shdma driver used to work. We used to pass the slave ID (DMA 
request line ID) to shdma from clients from the filter. This was 
considered bad and we were asked to switch to using 
dmaengine_slave_config(), which is the current preferred API, IIUC.

> I don't see how that
> could possibly work when used from a portable slave driver.

A DMA slave ID (DMA request line) is considered to be a portable 
parameter. I.e. on every platform your DMA slave has to request a DMA 
request line to the DMAC and that line can be coded with an int. That's 
the current assumption, I think.

Thanks
Guennadi
---
Guennadi Liakhovetski, Ph.D.
Freelance Open-Source Software Developer
http://www.open-technology.de/



More information about the linux-arm-kernel mailing list