Messages in this thread | | | Date | Thu, 8 Sep 2011 10:21:20 +0900 | From | Paul Mundt <> | Subject | Re: [PATCH] serial: sh-sci: don't filter on DMA device, use only channel ID |
| |
On Thu, Sep 08, 2011 at 03:07:53AM +0530, Koul, Vinod wrote: > On Wed, 2011-09-07 at 22:01 +0200, Guennadi Liakhovetski wrote: > > On Thu, 8 Sep 2011, Koul, Vinod wrote: > > You're seriously suggesting to export and use an additional shdma private > > function, bypassing the dmaengine API?... That really doesn't sound like a > > good idea to me, sorry. How about using .device_control(DMA_SLAVE_CONFIG) > > from the filter function directly to verify channel suitability? > Yes see stedma40, coh90138 drivers > .device_control is not right place as channel is already allocated. >
No, that's not going to happen either. Many of these drivers are used in different CPUs with different DMACs. The dmaengine driver in question only applies to a subset, so the driver bits need to be wholly generic. In short, if the dmaengine API can't handle this sort of stuff then it's the dmaengine API that needs to be extended, we won't be working around dmaengine shortcomings in drivers that simply want a sensible DMA API to plug in to.
| |