s3cmci: port DMA code to dmaengine API
PATCH v2 1/1 s3cmci: port DMA code to dmaengine API
Utilise new s3c24xx-dma dmaengine driver for DMA ops.
---
v2: - Don't store async dma descriptor, it's not used
- Request DMA channel via dma_request_slave_channel_compat() and use hardcoded DMA channel.
- Add dependency on S3C24XX_DMAC (s3cmci uses filter function from it)
drivers/mmc/host/Kconfig | 10 +-- drivers/mmc/host/s3cmci.c | 174 +++++++++++++--------------------------------- drivers/mmc/host/s3cmci.h | 4 +- 3 files changed, 52 insertions(+), 136 deletions(-)
drivers/mmc/host/Kconfig +1 -9
@@ -420,6 +420,7 @@ config MMC_SPI config MMC_S3C tristate "Samsung S3C SD/MMC Card Interface support" depends on ARCH_S3C24XX + select S3C24XX_DMAC help This selects a driver for the MCI interface found in Samsung's S3C2410, S3C2412, S3C2440, S3C2442 CPUs.
@@ -457,15 +458,6 @@ config MMC_S3C_DMA working properly and needs to be debugged before this option is useful. -config MMC_S3C_PIODMA - bool "Support for both PIO and DMA" - help - Compile both the PIO and DMA transfer routines into the - driver and let the platform select at run-time which one - is best. - - See notes for the DMA option. - endchoice config MMC_SDRICOH_CS
drivers/mmc/host/s3cmci.c +50 -124
280 lines not on this page · raw message
drivers/mmc/host/s3cmci.h +1 -3
@@ -26,7 +26,7 @@ struct s3cmci_host {void __iomem *base;int irq;int irq_cd; -int dma; +struct dma_chan *dma;unsigned long clk_rate;unsigned long clk_div;
@@ -36,8 +36,6 @@ struct s3cmci_host {int is2440;unsigned sdiimsk;unsigned sdidata; -int dodma; -int dmatogo;bool irq_disabled;bool irq_enabled;
Signature · 1 line
1.9.3
PATCH v2 1/1 s3cmci: port DMA code to dmaengine API
drivers/mmc/host/Kconfig config MMC_SPI · line 426
Quoted 12 lines · On Tuesday 20 May 2014 23:20:59 Vasily Khoruzhick wrote:
index 1384f67..e70e4cf 100644
drivers/mmc/host/Kconfig +1
-0@@ -420,6 +420,7 @@ config MMC_SPI config MMC_S3C tristate "Samsung S3C SD/MMC Card Interface support" depends on ARCH_S3C24XX + select S3C24XX_DMAC help This selects a driver for the MCI interface found in Samsung's S3C2410, S3C2412, S3C2440, S3C2442 CPUs.
I think you should use 'depends on S3C24XX_DMAC' here.
Other than that,
Arnd
PATCH v2 1/1 s3cmci: port DMA code to dmaengine API
Quoted 16 lines · Arnd Bergmann
drivers/mmc/host/Kconfig config MMC_SPI · line 426
Quoted 12 lines · On Tuesday 20 May 2014 23:20:59 Vasily Khoruzhick wrote:
index 1384f67..e70e4cf 100644
drivers/mmc/host/Kconfig +1
-0@@ -420,6 +420,7 @@ config MMC_SPI config MMC_S3C tristate "Samsung S3C SD/MMC Card Interface support" depends on ARCH_S3C24XX + select S3C24XX_DMAC help This selects a driver for the MCI interface found in Samsung's S3C2410, S3C2412, S3C2440, S3C2442 CPUs.I think you should use 'depends on
S3C24XX_DMAC' here.
Quoted 1 line
Other than that,
Ok, will send v3 tonight.
Regards
Vasily
Quoted 3 lines
Acked-by Arnd Bergmann <[email protected]>Arnd