Re: [PATCH/RFC 1/5] mmc: renesas-sdhi, tmio: make dma more modular

2017-05-02 Thread Simon Horman
On Tue, May 02, 2017 at 02:57:23PM +0200, Simon Horman wrote: > On Tue, May 02, 2017 at 02:01:28PM +0200, Arnd Bergmann wrote: > > On Tue, May 2, 2017 at 1:15 PM, Simon Horman > > wrote: > > > > > @@ -202,6 +214,15 @@ void tmio_mmc_enable_mmc_irqs(struct tmio_mmc_host > > > *host, u32 i); > > >

Re: [PATCH/RFC 1/5] mmc: renesas-sdhi, tmio: make dma more modular

2017-05-02 Thread Simon Horman
On Tue, May 02, 2017 at 02:01:28PM +0200, Arnd Bergmann wrote: > On Tue, May 2, 2017 at 1:15 PM, Simon Horman > wrote: > > > @@ -202,6 +214,15 @@ void tmio_mmc_enable_mmc_irqs(struct tmio_mmc_host > > *host, u32 i); > > void tmio_mmc_disable_mmc_irqs(struct tmio_mmc_host *host, u32 i); > > ir

Re: [PATCH/RFC 1/5] mmc: renesas-sdhi, tmio: make dma more modular

2017-05-02 Thread Arnd Bergmann
On Tue, May 2, 2017 at 1:15 PM, Simon Horman wrote: > @@ -202,6 +214,15 @@ void tmio_mmc_enable_mmc_irqs(struct tmio_mmc_host > *host, u32 i); > void tmio_mmc_disable_mmc_irqs(struct tmio_mmc_host *host, u32 i); > irqreturn_t tmio_mmc_irq(int irq, void *devid); > > +#if IS_ENABLED(CONFIG_MMC_S

[PATCH/RFC 1/5] mmc: renesas-sdhi, tmio: make dma more modular

2017-05-02 Thread Simon Horman
Refactor DMA support to allow it to be provided by a set of call-backs that are provided by a host driver. The motivation is to allow multiple DMA implementations to be provided and instantiated at run-time. Instantiate the existing DMA implementation from the sh_mobile_sdhi driver which appears t