Re: [PATCH] ARM: s3c24xx: Add dma_slave_map for s3c2440 devices

2016-09-15 Thread Vinod Koul
On Thu, Sep 15, 2016 at 11:05:12AM +0200, Sylwester Nawrocki wrote: > On 09/14/2016 08:29 PM, Sam Van Den Berge wrote: > > +static const struct dma_slave_map s3c2440_dma_slave_map[] = { > ... > > + { "3c2440-sdi", "rx", (void *)DMACH_SDI }, > > + { "3c2440-sdi", "tx", (void *)DMACH_SDI }, > >

Re: [PATCH] ARM: s3c24xx: Add dma_slave_map for s3c2440 devices

2016-09-15 Thread Arnd Bergmann
On Wednesday, September 14, 2016 8:29:35 PM CEST Sam Van Den Berge wrote: > This patch updates the s3c24xx dma driver to be able to pass a > dma_slave_map array via the platform data. This is needed to > be able to use the new, simpler dmaengine API [1]. > I used the virtual DMA channels as a param

Re: [PATCH] ARM: s3c24xx: Add dma_slave_map for s3c2440 devices

2016-09-15 Thread Sylwester Nawrocki
On 09/14/2016 08:29 PM, Sam Van Den Berge wrote: > +static const struct dma_slave_map s3c2440_dma_slave_map[] = { ... > + { "3c2440-sdi", "rx", (void *)DMACH_SDI }, > + { "3c2440-sdi", "tx", (void *)DMACH_SDI }, The device names seem misspelled here, and looking at what drivers/mmc/host/s3

[PATCH] ARM: s3c24xx: Add dma_slave_map for s3c2440 devices

2016-09-14 Thread Sam Van Den Berge
This patch updates the s3c24xx dma driver to be able to pass a dma_slave_map array via the platform data. This is needed to be able to use the new, simpler dmaengine API [1]. I used the virtual DMA channels as a parameter for the dma_filter function. By doing that, I could reuse the existing filter