* [PATCH 00/12] dmaengine: remove users of device_control
@ 2014-10-11 15:39 Vinod Koul
2014-10-11 15:40 ` [PATCH 01/12] pata_arasan_cf: use dmaengine_terminate_all() API Vinod Koul
` (12 more replies)
0 siblings, 13 replies; 28+ messages in thread
From: Vinod Koul @ 2014-10-11 15:39 UTC (permalink / raw)
To: dmaengine
Cc: Vinod Koul, Viresh Kumar, Tejun Heo, Linus Walleij, Dan Williams,
Guennadi Liakhovetski, Mauro Carvalho Chehab, David Woodhouse,
Brian Norris, Nicolas Ferre, Mark Brown, Greg Kroah-Hartman,
Jiri Slaby, Felipe Balbi, Jean-Christophe Plagniol-Villard,
Tomi Valkeinen, Liam Girdwood, Jaroslav Kysela, Takashi Iwai,
Jingoo Han, Bartlomiej Zolnierkiewicz, Laurent Pinchart,
Rafael J. Wysocki, Ezequiel Garcia, Kyungmin Park, Denis Carikli,
Daniel Vetter, Sascha Hauer, Alexander Stein, Lars-Peter Clausen,
linux-ide, linux-kernel, linux-arm-kernel, linux-media,
linux-mtd, netdev, linux-spi, linux-serial, linux-usb,
linux-fbdev, alsa-devel
The recent discussion [1] on the API have resulted in moving away from
device_control ioctl method to proper channel APIs.
There are still few users on the device_control which should use the wrappers
existing rather than access device_control.
This will aid us in deprecating and removing device_control, possibly after
the merge window.
These can be merged thru respective subsystem tree or dmaengine tree. Either
way please just let me know.
Feng's kbuild has tested these as well [2]
[1]: http://www.spinics.net/lists/dmaengine/msg02212.html
[2]: http://git.infradead.org/users/vkoul/slave-dma.git/shortlog/refs/heads/topic/dma_control_cleanup
Vinod Koul (12):
pata_arasan_cf: use dmaengine_terminate_all() API
dmaengine: coh901318: use dmaengine_terminate_all() API
[media] V4L2: mx3_camer: use dmaengine_pause() API
mtd: fsmc_nand: use dmaengine_terminate_all() API
mtd: sh_flctl: use dmaengine_terminate_all() API
net: ks8842: use dmaengine_terminate_all() API
spi/atmel: use dmaengine_terminate_all() API
spi/spi-dw-mid.c: use dmaengine_slave_config() API
serial: sh-sci: use dmaengine_terminate_all() API
usb: musb: ux500_dma: use dmaengine_xxx() APIs
ASoC: txx9: use dmaengine_terminate_all() API
video: mx3fb: use dmaengine_terminate_all() API
drivers/ata/pata_arasan_cf.c | 5 ++---
drivers/dma/coh901318.c | 2 +-
drivers/media/platform/soc_camera/mx3_camera.c | 6 ++----
drivers/mtd/nand/fsmc_nand.c | 2 +-
drivers/mtd/nand/sh_flctl.c | 2 +-
drivers/net/ethernet/micrel/ks8842.c | 6 ++----
drivers/spi/spi-atmel.c | 6 ++----
drivers/spi/spi-dw-mid.c | 6 ++----
drivers/tty/serial/sh-sci.c | 2 +-
drivers/usb/musb/ux500_dma.c | 7 ++-----
drivers/video/fbdev/mx3fb.c | 3 +--
sound/soc/txx9/txx9aclc.c | 7 +++----
12 files changed, 20 insertions(+), 34 deletions(-)
^ permalink raw reply [flat|nested] 28+ messages in thread
* [PATCH 01/12] pata_arasan_cf: use dmaengine_terminate_all() API
2014-10-11 15:39 [PATCH 00/12] dmaengine: remove users of device_control Vinod Koul
@ 2014-10-11 15:40 ` Vinod Koul
2014-10-13 2:47 ` Viresh Kumar
2014-10-11 15:40 ` [PATCH 02/12] dmaengine: coh901318: " Vinod Koul
` (11 subsequent siblings)
12 siblings, 1 reply; 28+ messages in thread
From: Vinod Koul @ 2014-10-11 15:40 UTC (permalink / raw)
To: dmaengine; +Cc: Vinod Koul, Viresh Kumar, Tejun Heo, linux-ide, linux-kernel
The drivers should use dmaengine_terminate_all() API instead of accessing
the device_control which will be deprecated soon
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
---
drivers/ata/pata_arasan_cf.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/drivers/ata/pata_arasan_cf.c b/drivers/ata/pata_arasan_cf.c
index 4edb1a8..38216b9 100644
--- a/drivers/ata/pata_arasan_cf.c
+++ b/drivers/ata/pata_arasan_cf.c
@@ -420,7 +420,7 @@ dma_xfer(struct arasan_cf_dev *acdev, dma_addr_t src, dma_addr_t dest, u32 len)
/* Wait for DMA to complete */
if (!wait_for_completion_timeout(&acdev->dma_completion, TIMEOUT)) {
- chan->device->device_control(chan, DMA_TERMINATE_ALL, 0);
+ dmaengine_terminate_all(chan);
dev_err(acdev->host->dev, "wait_for_completion_timeout\n");
return -ETIMEDOUT;
}
@@ -928,8 +928,7 @@ static int arasan_cf_suspend(struct device *dev)
struct arasan_cf_dev *acdev = host->ports[0]->private_data;
if (acdev->dma_chan)
- acdev->dma_chan->device->device_control(acdev->dma_chan,
- DMA_TERMINATE_ALL, 0);
+ dmaengine_terminate_all(acdev->dma_chan);
cf_exit(acdev);
return ata_host_suspend(host, PMSG_SUSPEND);
--
1.7.0.4
^ permalink raw reply related [flat|nested] 28+ messages in thread
* [PATCH 02/12] dmaengine: coh901318: use dmaengine_terminate_all() API
2014-10-11 15:39 [PATCH 00/12] dmaengine: remove users of device_control Vinod Koul
2014-10-11 15:40 ` [PATCH 01/12] pata_arasan_cf: use dmaengine_terminate_all() API Vinod Koul
@ 2014-10-11 15:40 ` Vinod Koul
2014-10-27 16:43 ` Linus Walleij
2014-10-11 15:40 ` [PATCH 03/12] [media] V4L2: mx3_camer: use dmaengine_pause() API Vinod Koul
` (10 subsequent siblings)
12 siblings, 1 reply; 28+ messages in thread
From: Vinod Koul @ 2014-10-11 15:40 UTC (permalink / raw)
To: dmaengine
Cc: Vinod Koul, Linus Walleij, Dan Williams, linux-arm-kernel, linux-kernel
The drivers should use dmaengine_terminate_all() API instead of accessing
the device_control which will be deprecated soon
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
---
drivers/dma/coh901318.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/dma/coh901318.c b/drivers/dma/coh901318.c
index 3c6716e..e88588d 100644
--- a/drivers/dma/coh901318.c
+++ b/drivers/dma/coh901318.c
@@ -2156,7 +2156,7 @@ coh901318_free_chan_resources(struct dma_chan *chan)
spin_unlock_irqrestore(&cohc->lock, flags);
- chan->device->device_control(chan, DMA_TERMINATE_ALL, 0);
+ dmaengine_terminate_all(chan);
}
--
1.7.0.4
^ permalink raw reply related [flat|nested] 28+ messages in thread
* [PATCH 03/12] [media] V4L2: mx3_camer: use dmaengine_pause() API
2014-10-11 15:39 [PATCH 00/12] dmaengine: remove users of device_control Vinod Koul
2014-10-11 15:40 ` [PATCH 01/12] pata_arasan_cf: use dmaengine_terminate_all() API Vinod Koul
2014-10-11 15:40 ` [PATCH 02/12] dmaengine: coh901318: " Vinod Koul
@ 2014-10-11 15:40 ` Vinod Koul
2014-10-16 19:40 ` Guennadi Liakhovetski
2014-10-11 15:40 ` [PATCH 04/12] mtd: fsmc_nand: use dmaengine_terminate_all() API Vinod Koul
` (9 subsequent siblings)
12 siblings, 1 reply; 28+ messages in thread
From: Vinod Koul @ 2014-10-11 15:40 UTC (permalink / raw)
To: dmaengine
Cc: Vinod Koul, Guennadi Liakhovetski, Mauro Carvalho Chehab,
linux-media, linux-kernel
The drivers should use dmaengine_pause() API instead of
accessing the device_control which will be deprecated soon
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
---
drivers/media/platform/soc_camera/mx3_camera.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/drivers/media/platform/soc_camera/mx3_camera.c b/drivers/media/platform/soc_camera/mx3_camera.c
index 83315df..7696a87 100644
--- a/drivers/media/platform/soc_camera/mx3_camera.c
+++ b/drivers/media/platform/soc_camera/mx3_camera.c
@@ -415,10 +415,8 @@ static void mx3_stop_streaming(struct vb2_queue *q)
struct mx3_camera_buffer *buf, *tmp;
unsigned long flags;
- if (ichan) {
- struct dma_chan *chan = &ichan->dma_chan;
- chan->device->device_control(chan, DMA_PAUSE, 0);
- }
+ if (ichan)
+ dmaengine_pause(&ichan->dma_chan);
spin_lock_irqsave(&mx3_cam->lock, flags);
--
1.7.0.4
^ permalink raw reply related [flat|nested] 28+ messages in thread
* [PATCH 04/12] mtd: fsmc_nand: use dmaengine_terminate_all() API
2014-10-11 15:39 [PATCH 00/12] dmaengine: remove users of device_control Vinod Koul
` (2 preceding siblings ...)
2014-10-11 15:40 ` [PATCH 03/12] [media] V4L2: mx3_camer: use dmaengine_pause() API Vinod Koul
@ 2014-10-11 15:40 ` Vinod Koul
2014-10-27 16:43 ` Linus Walleij
2014-10-11 15:40 ` [PATCH 05/12] mtd: sh_flctl: " Vinod Koul
` (8 subsequent siblings)
12 siblings, 1 reply; 28+ messages in thread
From: Vinod Koul @ 2014-10-11 15:40 UTC (permalink / raw)
To: dmaengine
Cc: Vinod Koul, David Woodhouse, Brian Norris, Jingoo Han,
Linus Walleij, Mark Brown, Bartlomiej Zolnierkiewicz, linux-mtd,
linux-kernel
The drivers should use dmaengine_terminate_all() API instead of
accessing the device_control which will be deprecated soon
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
---
drivers/mtd/nand/fsmc_nand.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/mtd/nand/fsmc_nand.c b/drivers/mtd/nand/fsmc_nand.c
index 1550692..7a91587 100644
--- a/drivers/mtd/nand/fsmc_nand.c
+++ b/drivers/mtd/nand/fsmc_nand.c
@@ -605,7 +605,7 @@ static int dma_xfer(struct fsmc_nand_data *host, void *buffer, int len,
wait_for_completion_timeout(&host->dma_access_complete,
msecs_to_jiffies(3000));
if (ret <= 0) {
- chan->device->device_control(chan, DMA_TERMINATE_ALL, 0);
+ dmaengine_terminate_all(chan);
dev_err(host->dev, "wait_for_completion_timeout\n");
if (!ret)
ret = -ETIMEDOUT;
--
1.7.0.4
^ permalink raw reply related [flat|nested] 28+ messages in thread
* [PATCH 05/12] mtd: sh_flctl: use dmaengine_terminate_all() API
2014-10-11 15:39 [PATCH 00/12] dmaengine: remove users of device_control Vinod Koul
` (3 preceding siblings ...)
2014-10-11 15:40 ` [PATCH 04/12] mtd: fsmc_nand: use dmaengine_terminate_all() API Vinod Koul
@ 2014-10-11 15:40 ` Vinod Koul
2014-10-11 17:19 ` Laurent Pinchart
2014-10-11 15:40 ` [PATCH 06/12] net: ks8842: " Vinod Koul
` (7 subsequent siblings)
12 siblings, 1 reply; 28+ messages in thread
From: Vinod Koul @ 2014-10-11 15:40 UTC (permalink / raw)
To: dmaengine
Cc: Vinod Koul, David Woodhouse, Brian Norris, Laurent Pinchart,
Jingoo Han, Rafael J. Wysocki, Ezequiel Garcia, linux-mtd,
linux-kernel
The drivers should use dmaengine_terminate_all() API instead of
accessing the device_control which will be deprecated soon
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
---
drivers/mtd/nand/sh_flctl.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/mtd/nand/sh_flctl.c b/drivers/mtd/nand/sh_flctl.c
index c067023..0ed7c60 100644
--- a/drivers/mtd/nand/sh_flctl.c
+++ b/drivers/mtd/nand/sh_flctl.c
@@ -395,7 +395,7 @@ static int flctl_dma_fifo0_transfer(struct sh_flctl *flctl, unsigned long *buf,
msecs_to_jiffies(3000));
if (ret <= 0) {
- chan->device->device_control(chan, DMA_TERMINATE_ALL, 0);
+ dmaengine_terminate_all(chan);
dev_err(&flctl->pdev->dev, "wait_for_completion_timeout\n");
}
--
1.7.0.4
^ permalink raw reply related [flat|nested] 28+ messages in thread
* [PATCH 06/12] net: ks8842: use dmaengine_terminate_all() API
2014-10-11 15:39 [PATCH 00/12] dmaengine: remove users of device_control Vinod Koul
` (4 preceding siblings ...)
2014-10-11 15:40 ` [PATCH 05/12] mtd: sh_flctl: " Vinod Koul
@ 2014-10-11 15:40 ` Vinod Koul
2014-10-11 15:40 ` [PATCH 07/12] spi/atmel: " Vinod Koul
` (6 subsequent siblings)
12 siblings, 0 replies; 28+ messages in thread
From: Vinod Koul @ 2014-10-11 15:40 UTC (permalink / raw)
To: dmaengine
Cc: Vinod Koul, Mark Brown, Bartlomiej Zolnierkiewicz, Kyungmin Park,
Dan Williams, netdev, linux-kernel
The drivers should use dmaengine_terminate_all() API instead of
accessing the device_control which will be deprecated soon
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
---
drivers/net/ethernet/micrel/ks8842.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/drivers/net/ethernet/micrel/ks8842.c b/drivers/net/ethernet/micrel/ks8842.c
index 822616e..0c33b92 100644
--- a/drivers/net/ethernet/micrel/ks8842.c
+++ b/drivers/net/ethernet/micrel/ks8842.c
@@ -875,13 +875,11 @@ static void ks8842_stop_dma(struct ks8842_adapter *adapter)
tx_ctl->adesc = NULL;
if (tx_ctl->chan)
- tx_ctl->chan->device->device_control(tx_ctl->chan,
- DMA_TERMINATE_ALL, 0);
+ dmaengine_terminate_all(tx_ctl->chan);
rx_ctl->adesc = NULL;
if (rx_ctl->chan)
- rx_ctl->chan->device->device_control(rx_ctl->chan,
- DMA_TERMINATE_ALL, 0);
+ dmaengine_terminate_all(rx_ctl->chan);
if (sg_dma_address(&rx_ctl->sg))
dma_unmap_single(adapter->dev, sg_dma_address(&rx_ctl->sg),
--
1.7.0.4
^ permalink raw reply related [flat|nested] 28+ messages in thread
* [PATCH 07/12] spi/atmel: use dmaengine_terminate_all() API
2014-10-11 15:39 [PATCH 00/12] dmaengine: remove users of device_control Vinod Koul
` (5 preceding siblings ...)
2014-10-11 15:40 ` [PATCH 06/12] net: ks8842: " Vinod Koul
@ 2014-10-11 15:40 ` Vinod Koul
2014-10-12 20:06 ` Nicolas Ferre
2014-10-13 10:30 ` Mark Brown
2014-10-11 15:40 ` [PATCH 08/12] spi/spi-dw-mid.c: use dmaengine_slave_config() API Vinod Koul
` (5 subsequent siblings)
12 siblings, 2 replies; 28+ messages in thread
From: Vinod Koul @ 2014-10-11 15:40 UTC (permalink / raw)
To: dmaengine; +Cc: Vinod Koul, Nicolas Ferre, Mark Brown, linux-spi, linux-kernel
The drivers should use dmaengine_terminate_all() API instead of
accessing the device_control which will be deprecated soon
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
---
drivers/spi/spi-atmel.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/drivers/spi/spi-atmel.c b/drivers/spi/spi-atmel.c
index 113c83f..649dcb5 100644
--- a/drivers/spi/spi-atmel.c
+++ b/drivers/spi/spi-atmel.c
@@ -482,11 +482,9 @@ error:
static void atmel_spi_stop_dma(struct atmel_spi *as)
{
if (as->dma.chan_rx)
- as->dma.chan_rx->device->device_control(as->dma.chan_rx,
- DMA_TERMINATE_ALL, 0);
+ dmaengine_terminate_all(as->dma.chan_rx);
if (as->dma.chan_tx)
- as->dma.chan_tx->device->device_control(as->dma.chan_tx,
- DMA_TERMINATE_ALL, 0);
+ dmaengine_terminate_all(as->dma.chan_tx);
}
static void atmel_spi_release_dma(struct atmel_spi *as)
--
1.7.0.4
^ permalink raw reply related [flat|nested] 28+ messages in thread
* [PATCH 08/12] spi/spi-dw-mid.c: use dmaengine_slave_config() API
2014-10-11 15:39 [PATCH 00/12] dmaengine: remove users of device_control Vinod Koul
` (6 preceding siblings ...)
2014-10-11 15:40 ` [PATCH 07/12] spi/atmel: " Vinod Koul
@ 2014-10-11 15:40 ` Vinod Koul
2014-10-13 10:32 ` Mark Brown
2014-10-11 15:40 ` [PATCH 09/12] serial: sh-sci: use dmaengine_terminate_all() API Vinod Koul
` (4 subsequent siblings)
12 siblings, 1 reply; 28+ messages in thread
From: Vinod Koul @ 2014-10-11 15:40 UTC (permalink / raw)
To: dmaengine; +Cc: Vinod Koul, Mark Brown, linux-spi, linux-kernel
The drivers should use dmaengine_slave_config() API instead of
accessing the device_control which will be deprecated soon
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
---
drivers/spi/spi-dw-mid.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/drivers/spi/spi-dw-mid.c b/drivers/spi/spi-dw-mid.c
index 6d207af..6c8ad64 100644
--- a/drivers/spi/spi-dw-mid.c
+++ b/drivers/spi/spi-dw-mid.c
@@ -139,8 +139,7 @@ static int mid_spi_dma_transfer(struct dw_spi *dws, int cs_change)
txconf.dst_addr_width = DMA_SLAVE_BUSWIDTH_2_BYTES;
txconf.device_fc = false;
- txchan->device->device_control(txchan, DMA_SLAVE_CONFIG,
- (unsigned long) &txconf);
+ dmaengine_slave_config(txchan, &txconf);
memset(&dws->tx_sgl, 0, sizeof(dws->tx_sgl));
dws->tx_sgl.dma_address = dws->tx_dma;
@@ -162,8 +161,7 @@ static int mid_spi_dma_transfer(struct dw_spi *dws, int cs_change)
rxconf.src_addr_width = DMA_SLAVE_BUSWIDTH_2_BYTES;
rxconf.device_fc = false;
- rxchan->device->device_control(rxchan, DMA_SLAVE_CONFIG,
- (unsigned long) &rxconf);
+ dmaengine_slave_config(txchan, &rxconf);
memset(&dws->rx_sgl, 0, sizeof(dws->rx_sgl));
dws->rx_sgl.dma_address = dws->rx_dma;
--
1.7.0.4
^ permalink raw reply related [flat|nested] 28+ messages in thread
* [PATCH 09/12] serial: sh-sci: use dmaengine_terminate_all() API
2014-10-11 15:39 [PATCH 00/12] dmaengine: remove users of device_control Vinod Koul
` (7 preceding siblings ...)
2014-10-11 15:40 ` [PATCH 08/12] spi/spi-dw-mid.c: use dmaengine_slave_config() API Vinod Koul
@ 2014-10-11 15:40 ` Vinod Koul
2014-10-11 20:21 ` Greg Kroah-Hartman
2014-10-11 15:40 ` [PATCH 10/12] usb: musb: ux500_dma: use dmaengine_xxx() APIs Vinod Koul
` (3 subsequent siblings)
12 siblings, 1 reply; 28+ messages in thread
From: Vinod Koul @ 2014-10-11 15:40 UTC (permalink / raw)
To: dmaengine
Cc: Vinod Koul, Greg Kroah-Hartman, Jiri Slaby, linux-serial, linux-kernel
The drivers should use dmaengine_terminate_all() API instead of
accessing the device_control which will be deprecated soon
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
---
drivers/tty/serial/sh-sci.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/tty/serial/sh-sci.c b/drivers/tty/serial/sh-sci.c
index 3081e46..eb17c71 100644
--- a/drivers/tty/serial/sh-sci.c
+++ b/drivers/tty/serial/sh-sci.c
@@ -1403,7 +1403,7 @@ static void work_fn_rx(struct work_struct *work)
unsigned long flags;
int count;
- chan->device->device_control(chan, DMA_TERMINATE_ALL, 0);
+ dmaengine_terminate_all(chan);
dev_dbg(port->dev, "Read %zu bytes with cookie %d\n",
sh_desc->partial, sh_desc->cookie);
--
1.7.0.4
^ permalink raw reply related [flat|nested] 28+ messages in thread
* [PATCH 10/12] usb: musb: ux500_dma: use dmaengine_xxx() APIs
2014-10-11 15:39 [PATCH 00/12] dmaengine: remove users of device_control Vinod Koul
` (8 preceding siblings ...)
2014-10-11 15:40 ` [PATCH 09/12] serial: sh-sci: use dmaengine_terminate_all() API Vinod Koul
@ 2014-10-11 15:40 ` Vinod Koul
2014-10-11 20:21 ` Greg Kroah-Hartman
2014-10-12 0:45 ` Felipe Balbi
2014-10-11 15:40 ` [PATCH 11/12] ASoC: txx9: use dmaengine_terminate_all() API Vinod Koul
` (2 subsequent siblings)
12 siblings, 2 replies; 28+ messages in thread
From: Vinod Koul @ 2014-10-11 15:40 UTC (permalink / raw)
To: dmaengine
Cc: Vinod Koul, Felipe Balbi, Greg Kroah-Hartman, linux-usb, linux-kernel
The drivers should use dmaengine_terminate_all() or dmaengine_slave_config()
API instead of accessing the device_control which will be deprecated soon
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
---
drivers/usb/musb/ux500_dma.c | 7 ++-----
1 files changed, 2 insertions(+), 5 deletions(-)
diff --git a/drivers/usb/musb/ux500_dma.c b/drivers/usb/musb/ux500_dma.c
index 9aad00f..874833d 100644
--- a/drivers/usb/musb/ux500_dma.c
+++ b/drivers/usb/musb/ux500_dma.c
@@ -121,8 +121,7 @@ static bool ux500_configure_channel(struct dma_channel *channel,
slave_conf.dst_maxburst = 16;
slave_conf.device_fc = false;
- dma_chan->device->device_control(dma_chan, DMA_SLAVE_CONFIG,
- (unsigned long) &slave_conf);
+ dmaengine_slave_config(dma_chan, &slave_conf);
dma_desc = dmaengine_prep_slave_sg(dma_chan, &sg, 1, direction,
DMA_PREP_INTERRUPT | DMA_CTRL_ACK);
@@ -246,9 +245,7 @@ static int ux500_dma_channel_abort(struct dma_channel *channel)
musb_writew(epio, MUSB_RXCSR, csr);
}
- ux500_channel->dma_chan->device->
- device_control(ux500_channel->dma_chan,
- DMA_TERMINATE_ALL, 0);
+ dmaengine_terminate_all(ux500_channel->dma_chan);
channel->status = MUSB_DMA_STATUS_FREE;
}
return 0;
--
1.7.0.4
^ permalink raw reply related [flat|nested] 28+ messages in thread
* [PATCH 11/12] ASoC: txx9: use dmaengine_terminate_all() API
2014-10-11 15:39 [PATCH 00/12] dmaengine: remove users of device_control Vinod Koul
` (9 preceding siblings ...)
2014-10-11 15:40 ` [PATCH 10/12] usb: musb: ux500_dma: use dmaengine_xxx() APIs Vinod Koul
@ 2014-10-11 15:40 ` Vinod Koul
2014-10-11 16:21 ` Lars-Peter Clausen
2014-10-11 15:40 ` [PATCH 12/12] video: mx3fb: " Vinod Koul
2014-10-15 15:58 ` [PATCH 00/12] dmaengine: remove users of device_control Vinod Koul
12 siblings, 1 reply; 28+ messages in thread
From: Vinod Koul @ 2014-10-11 15:40 UTC (permalink / raw)
To: dmaengine
Cc: Vinod Koul, Liam Girdwood, Mark Brown, Jaroslav Kysela,
Takashi Iwai, Lars-Peter Clausen, alsa-devel, linux-kernel
The drivers should use dmaengine_terminate_all() API instead of
accessing the device_control which will be deprecated soon
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
---
sound/soc/txx9/txx9aclc.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/sound/soc/txx9/txx9aclc.c b/sound/soc/txx9/txx9aclc.c
index f0829de..3b122cd 100644
--- a/sound/soc/txx9/txx9aclc.c
+++ b/sound/soc/txx9/txx9aclc.c
@@ -160,7 +160,7 @@ static void txx9aclc_dma_tasklet(unsigned long data)
void __iomem *base = drvdata->base;
spin_unlock_irqrestore(&dmadata->dma_lock, flags);
- chan->device->device_control(chan, DMA_TERMINATE_ALL, 0);
+ dmaengine_terminate_all(chan);
/* first time */
for (i = 0; i < NR_DMA_CHAIN; i++) {
desc = txx9aclc_dma_submit(dmadata,
@@ -266,7 +266,7 @@ static int txx9aclc_pcm_close(struct snd_pcm_substream *substream)
struct dma_chan *chan = dmadata->dma_chan;
dmadata->frag_count = -1;
- chan->device->device_control(chan, DMA_TERMINATE_ALL, 0);
+ dmaengine_terminate_all(chan);
return 0;
}
@@ -398,8 +398,7 @@ static int txx9aclc_pcm_remove(struct snd_soc_platform *platform)
struct dma_chan *chan = dmadata->dma_chan;
if (chan) {
dmadata->frag_count = -1;
- chan->device->device_control(chan,
- DMA_TERMINATE_ALL, 0);
+ dmaengine_terminate_all(chan);
dma_release_channel(chan);
}
dev->dmadata[i].dma_chan = NULL;
--
1.7.0.4
^ permalink raw reply related [flat|nested] 28+ messages in thread
* [PATCH 12/12] video: mx3fb: use dmaengine_terminate_all() API
2014-10-11 15:39 [PATCH 00/12] dmaengine: remove users of device_control Vinod Koul
` (10 preceding siblings ...)
2014-10-11 15:40 ` [PATCH 11/12] ASoC: txx9: use dmaengine_terminate_all() API Vinod Koul
@ 2014-10-11 15:40 ` Vinod Koul
2014-10-15 15:58 ` [PATCH 00/12] dmaengine: remove users of device_control Vinod Koul
12 siblings, 0 replies; 28+ messages in thread
From: Vinod Koul @ 2014-10-11 15:40 UTC (permalink / raw)
To: dmaengine
Cc: Vinod Koul, Jean-Christophe Plagniol-Villard, Tomi Valkeinen,
Jingoo Han, Denis Carikli, Daniel Vetter, Sascha Hauer,
Alexander Stein, linux-fbdev, linux-kernel
The drivers should use dmaengine_terminate_all() API instead of
accessing the device_control which will be deprecated soon
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
---
drivers/video/fbdev/mx3fb.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/drivers/video/fbdev/mx3fb.c b/drivers/video/fbdev/mx3fb.c
index c645a0a..cdbc93a 100644
--- a/drivers/video/fbdev/mx3fb.c
+++ b/drivers/video/fbdev/mx3fb.c
@@ -461,8 +461,7 @@ static void sdc_disable_channel(struct mx3fb_info *mx3_fbi)
spin_unlock_irqrestore(&mx3fb->lock, flags);
- mx3_fbi->txd->chan->device->device_control(mx3_fbi->txd->chan,
- DMA_TERMINATE_ALL, 0);
+ dmaengine_terminate_all(mx3_fbi->txd->chan);
mx3_fbi->txd = NULL;
mx3_fbi->cookie = -EINVAL;
}
--
1.7.0.4
^ permalink raw reply related [flat|nested] 28+ messages in thread
* Re: [PATCH 11/12] ASoC: txx9: use dmaengine_terminate_all() API
2014-10-11 16:21 ` Lars-Peter Clausen
@ 2014-10-11 15:54 ` Vinod Koul
2014-10-13 7:44 ` Mark Brown
0 siblings, 1 reply; 28+ messages in thread
From: Vinod Koul @ 2014-10-11 15:54 UTC (permalink / raw)
To: Lars-Peter Clausen
Cc: dmaengine, Liam Girdwood, Mark Brown, Jaroslav Kysela,
Takashi Iwai, alsa-devel, linux-kernel
On Sat, Oct 11, 2014 at 06:21:47PM +0200, Lars-Peter Clausen wrote:
> On 10/11/2014 05:40 PM, Vinod Koul wrote:
> >The drivers should use dmaengine_terminate_all() API instead of
> >accessing the device_control which will be deprecated soon
>
> I already send a similar patch a while ago. It is on it's way into 3.18.
I will drop this one then
I did grep the linux-next when I started on this and found no reductions
from what I had in dmaengine-next
--
~Vinod
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: [PATCH 11/12] ASoC: txx9: use dmaengine_terminate_all() API
2014-10-11 15:40 ` [PATCH 11/12] ASoC: txx9: use dmaengine_terminate_all() API Vinod Koul
@ 2014-10-11 16:21 ` Lars-Peter Clausen
2014-10-11 15:54 ` Vinod Koul
0 siblings, 1 reply; 28+ messages in thread
From: Lars-Peter Clausen @ 2014-10-11 16:21 UTC (permalink / raw)
To: Vinod Koul
Cc: dmaengine, Liam Girdwood, Mark Brown, Jaroslav Kysela,
Takashi Iwai, alsa-devel, linux-kernel
On 10/11/2014 05:40 PM, Vinod Koul wrote:
> The drivers should use dmaengine_terminate_all() API instead of
> accessing the device_control which will be deprecated soon
I already send a similar patch a while ago. It is on it's way into 3.18.
>
> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: [PATCH 05/12] mtd: sh_flctl: use dmaengine_terminate_all() API
2014-10-11 15:40 ` [PATCH 05/12] mtd: sh_flctl: " Vinod Koul
@ 2014-10-11 17:19 ` Laurent Pinchart
0 siblings, 0 replies; 28+ messages in thread
From: Laurent Pinchart @ 2014-10-11 17:19 UTC (permalink / raw)
To: Vinod Koul
Cc: dmaengine, David Woodhouse, Brian Norris, Laurent Pinchart,
Jingoo Han, Rafael J. Wysocki, Ezequiel Garcia, linux-mtd,
linux-kernel
On Saturday 11 October 2014 21:10:33 Vinod Koul wrote:
> The drivers should use dmaengine_terminate_all() API instead of
> accessing the device_control which will be deprecated soon
>
> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Acked-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
> ---
> drivers/mtd/nand/sh_flctl.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/mtd/nand/sh_flctl.c b/drivers/mtd/nand/sh_flctl.c
> index c067023..0ed7c60 100644
> --- a/drivers/mtd/nand/sh_flctl.c
> +++ b/drivers/mtd/nand/sh_flctl.c
> @@ -395,7 +395,7 @@ static int flctl_dma_fifo0_transfer(struct sh_flctl
> *flctl, unsigned long *buf, msecs_to_jiffies(3000));
>
> if (ret <= 0) {
> - chan->device->device_control(chan, DMA_TERMINATE_ALL, 0);
> + dmaengine_terminate_all(chan);
> dev_err(&flctl->pdev->dev, "wait_for_completion_timeout\n");
> }
--
Regards,
Laurent Pinchart
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: [PATCH 09/12] serial: sh-sci: use dmaengine_terminate_all() API
2014-10-11 15:40 ` [PATCH 09/12] serial: sh-sci: use dmaengine_terminate_all() API Vinod Koul
@ 2014-10-11 20:21 ` Greg Kroah-Hartman
0 siblings, 0 replies; 28+ messages in thread
From: Greg Kroah-Hartman @ 2014-10-11 20:21 UTC (permalink / raw)
To: Vinod Koul; +Cc: dmaengine, Jiri Slaby, linux-serial, linux-kernel
On Sat, Oct 11, 2014 at 09:10:37PM +0530, Vinod Koul wrote:
> The drivers should use dmaengine_terminate_all() API instead of
> accessing the device_control which will be deprecated soon
>
> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: [PATCH 10/12] usb: musb: ux500_dma: use dmaengine_xxx() APIs
2014-10-11 15:40 ` [PATCH 10/12] usb: musb: ux500_dma: use dmaengine_xxx() APIs Vinod Koul
@ 2014-10-11 20:21 ` Greg Kroah-Hartman
2014-10-12 0:45 ` Felipe Balbi
1 sibling, 0 replies; 28+ messages in thread
From: Greg Kroah-Hartman @ 2014-10-11 20:21 UTC (permalink / raw)
To: Vinod Koul; +Cc: dmaengine, Felipe Balbi, linux-usb, linux-kernel
On Sat, Oct 11, 2014 at 09:10:38PM +0530, Vinod Koul wrote:
> The drivers should use dmaengine_terminate_all() or dmaengine_slave_config()
> API instead of accessing the device_control which will be deprecated soon
>
> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: [PATCH 10/12] usb: musb: ux500_dma: use dmaengine_xxx() APIs
2014-10-11 15:40 ` [PATCH 10/12] usb: musb: ux500_dma: use dmaengine_xxx() APIs Vinod Koul
2014-10-11 20:21 ` Greg Kroah-Hartman
@ 2014-10-12 0:45 ` Felipe Balbi
1 sibling, 0 replies; 28+ messages in thread
From: Felipe Balbi @ 2014-10-12 0:45 UTC (permalink / raw)
To: Vinod Koul
Cc: dmaengine, Felipe Balbi, Greg Kroah-Hartman, linux-usb, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 460 bytes --]
Hi,
On Sat, Oct 11, 2014 at 09:10:38PM +0530, Vinod Koul wrote:
> The drivers should use dmaengine_terminate_all() or dmaengine_slave_config()
> API instead of accessing the device_control which will be deprecated soon
>
> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
awesome. It looks like it doesn't have a direct dependency with the rest
of the series, so I'll take this through my tree with Greg's ack, unless
you shout ;-)
--
balbi
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: [PATCH 07/12] spi/atmel: use dmaengine_terminate_all() API
2014-10-11 15:40 ` [PATCH 07/12] spi/atmel: " Vinod Koul
@ 2014-10-12 20:06 ` Nicolas Ferre
2014-10-13 10:30 ` Mark Brown
1 sibling, 0 replies; 28+ messages in thread
From: Nicolas Ferre @ 2014-10-12 20:06 UTC (permalink / raw)
To: Vinod Koul, dmaengine; +Cc: Mark Brown, linux-spi, linux-kernel
On 11/10/2014 17:40, Vinod Koul :
> The drivers should use dmaengine_terminate_all() API instead of
> accessing the device_control which will be deprecated soon
>
> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
sure:
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Thanks Vinod.
Bye,
> ---
> drivers/spi/spi-atmel.c | 6 ++----
> 1 files changed, 2 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/spi/spi-atmel.c b/drivers/spi/spi-atmel.c
> index 113c83f..649dcb5 100644
> --- a/drivers/spi/spi-atmel.c
> +++ b/drivers/spi/spi-atmel.c
> @@ -482,11 +482,9 @@ error:
> static void atmel_spi_stop_dma(struct atmel_spi *as)
> {
> if (as->dma.chan_rx)
> - as->dma.chan_rx->device->device_control(as->dma.chan_rx,
> - DMA_TERMINATE_ALL, 0);
> + dmaengine_terminate_all(as->dma.chan_rx);
> if (as->dma.chan_tx)
> - as->dma.chan_tx->device->device_control(as->dma.chan_tx,
> - DMA_TERMINATE_ALL, 0);
> + dmaengine_terminate_all(as->dma.chan_tx);
> }
>
> static void atmel_spi_release_dma(struct atmel_spi *as)
>
--
Nicolas Ferre
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: [PATCH 01/12] pata_arasan_cf: use dmaengine_terminate_all() API
2014-10-11 15:40 ` [PATCH 01/12] pata_arasan_cf: use dmaengine_terminate_all() API Vinod Koul
@ 2014-10-13 2:47 ` Viresh Kumar
0 siblings, 0 replies; 28+ messages in thread
From: Viresh Kumar @ 2014-10-13 2:47 UTC (permalink / raw)
To: Vinod Koul; +Cc: dmaengine, Tejun Heo, ...), linux-kernel
On Sat, Oct 11, 2014 at 9:10 PM, Vinod Koul <vinod.koul@intel.com> wrote:
> The drivers should use dmaengine_terminate_all() API instead of accessing
> the device_control which will be deprecated soon
>
> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
> ---
> drivers/ata/pata_arasan_cf.c | 5 ++---
> 1 files changed, 2 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/ata/pata_arasan_cf.c b/drivers/ata/pata_arasan_cf.c
> index 4edb1a8..38216b9 100644
> --- a/drivers/ata/pata_arasan_cf.c
> +++ b/drivers/ata/pata_arasan_cf.c
> @@ -420,7 +420,7 @@ dma_xfer(struct arasan_cf_dev *acdev, dma_addr_t src, dma_addr_t dest, u32 len)
>
> /* Wait for DMA to complete */
> if (!wait_for_completion_timeout(&acdev->dma_completion, TIMEOUT)) {
> - chan->device->device_control(chan, DMA_TERMINATE_ALL, 0);
> + dmaengine_terminate_all(chan);
> dev_err(acdev->host->dev, "wait_for_completion_timeout\n");
> return -ETIMEDOUT;
> }
> @@ -928,8 +928,7 @@ static int arasan_cf_suspend(struct device *dev)
> struct arasan_cf_dev *acdev = host->ports[0]->private_data;
>
> if (acdev->dma_chan)
> - acdev->dma_chan->device->device_control(acdev->dma_chan,
> - DMA_TERMINATE_ALL, 0);
> + dmaengine_terminate_all(acdev->dma_chan);
>
> cf_exit(acdev);
> return ata_host_suspend(host, PMSG_SUSPEND);
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: [PATCH 11/12] ASoC: txx9: use dmaengine_terminate_all() API
2014-10-11 15:54 ` Vinod Koul
@ 2014-10-13 7:44 ` Mark Brown
0 siblings, 0 replies; 28+ messages in thread
From: Mark Brown @ 2014-10-13 7:44 UTC (permalink / raw)
To: Vinod Koul
Cc: Lars-Peter Clausen, dmaengine, Liam Girdwood, Jaroslav Kysela,
Takashi Iwai, alsa-devel, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 459 bytes --]
On Sat, Oct 11, 2014 at 09:24:11PM +0530, Vinod Koul wrote:
> On Sat, Oct 11, 2014 at 06:21:47PM +0200, Lars-Peter Clausen wrote:
> > I already send a similar patch a while ago. It is on it's way into 3.18.
> I will drop this one then
> I did grep the linux-next when I started on this and found no reductions
> from what I had in dmaengine-next
It's ff495d3a8ea4d (ASoC: txx9: Don't opencode DMAengine API calls) from
August which is in Linus' tree now.
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 473 bytes --]
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: [PATCH 07/12] spi/atmel: use dmaengine_terminate_all() API
2014-10-11 15:40 ` [PATCH 07/12] spi/atmel: " Vinod Koul
2014-10-12 20:06 ` Nicolas Ferre
@ 2014-10-13 10:30 ` Mark Brown
1 sibling, 0 replies; 28+ messages in thread
From: Mark Brown @ 2014-10-13 10:30 UTC (permalink / raw)
To: Vinod Koul; +Cc: dmaengine, Nicolas Ferre, linux-spi, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 205 bytes --]
On Sat, Oct 11, 2014 at 09:10:35PM +0530, Vinod Koul wrote:
> The drivers should use dmaengine_terminate_all() API instead of
> accessing the device_control which will be deprecated soon
Applied, thanks.
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 473 bytes --]
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: [PATCH 08/12] spi/spi-dw-mid.c: use dmaengine_slave_config() API
2014-10-11 15:40 ` [PATCH 08/12] spi/spi-dw-mid.c: use dmaengine_slave_config() API Vinod Koul
@ 2014-10-13 10:32 ` Mark Brown
0 siblings, 0 replies; 28+ messages in thread
From: Mark Brown @ 2014-10-13 10:32 UTC (permalink / raw)
To: Vinod Koul; +Cc: dmaengine, linux-spi, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 204 bytes --]
On Sat, Oct 11, 2014 at 09:10:36PM +0530, Vinod Koul wrote:
> The drivers should use dmaengine_slave_config() API instead of
> accessing the device_control which will be deprecated soon
Applied, thanks.
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 473 bytes --]
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: [PATCH 00/12] dmaengine: remove users of device_control
2014-10-11 15:39 [PATCH 00/12] dmaengine: remove users of device_control Vinod Koul
` (11 preceding siblings ...)
2014-10-11 15:40 ` [PATCH 12/12] video: mx3fb: " Vinod Koul
@ 2014-10-15 15:58 ` Vinod Koul
12 siblings, 0 replies; 28+ messages in thread
From: Vinod Koul @ 2014-10-15 15:58 UTC (permalink / raw)
To: dmaengine
Cc: Viresh Kumar, Tejun Heo, Linus Walleij, Dan Williams,
Guennadi Liakhovetski, Mauro Carvalho Chehab, David Woodhouse,
Brian Norris, Nicolas Ferre, Mark Brown, Greg Kroah-Hartman,
Jiri Slaby, Felipe Balbi, Jean-Christophe Plagniol-Villard,
Tomi Valkeinen, Liam Girdwood, Jaroslav Kysela, Takashi Iwai,
Jingoo Han, Bartlomiej Zolnierkiewicz, Laurent Pinchart,
Rafael J. Wysocki, Ezequiel Garcia, Kyungmin Park, Denis Carikli,
Daniel Vetter, Sascha Hauer, Alexander Stein, Lars-Peter Clausen,
linux-ide, linux-kernel, linux-arm-kernel, linux-media,
linux-mtd, netdev, linux-spi, linux-serial, linux-usb,
linux-fbdev, alsa-devel
On Sat, Oct 11, 2014 at 09:09:33PM +0530, Vinod Koul wrote:
> The recent discussion [1] on the API have resulted in moving away from
> device_control ioctl method to proper channel APIs.
> There are still few users on the device_control which should use the wrappers
> existing rather than access device_control.
> This will aid us in deprecating and removing device_control, possibly after
> the merge window.
>
> These can be merged thru respective subsystem tree or dmaengine tree. Either
> way please just let me know.
Applying to dmaengine-next with acks recived, dropping the ones which are
applied by respective folks
--
~Vinod
>
> Feng's kbuild has tested these as well [2]
>
> [1]: http://www.spinics.net/lists/dmaengine/msg02212.html
> [2]: http://git.infradead.org/users/vkoul/slave-dma.git/shortlog/refs/heads/topic/dma_control_cleanup
>
> Vinod Koul (12):
> pata_arasan_cf: use dmaengine_terminate_all() API
> dmaengine: coh901318: use dmaengine_terminate_all() API
> [media] V4L2: mx3_camer: use dmaengine_pause() API
> mtd: fsmc_nand: use dmaengine_terminate_all() API
> mtd: sh_flctl: use dmaengine_terminate_all() API
> net: ks8842: use dmaengine_terminate_all() API
> spi/atmel: use dmaengine_terminate_all() API
> spi/spi-dw-mid.c: use dmaengine_slave_config() API
> serial: sh-sci: use dmaengine_terminate_all() API
> usb: musb: ux500_dma: use dmaengine_xxx() APIs
> ASoC: txx9: use dmaengine_terminate_all() API
> video: mx3fb: use dmaengine_terminate_all() API
>
> drivers/ata/pata_arasan_cf.c | 5 ++---
> drivers/dma/coh901318.c | 2 +-
> drivers/media/platform/soc_camera/mx3_camera.c | 6 ++----
> drivers/mtd/nand/fsmc_nand.c | 2 +-
> drivers/mtd/nand/sh_flctl.c | 2 +-
> drivers/net/ethernet/micrel/ks8842.c | 6 ++----
> drivers/spi/spi-atmel.c | 6 ++----
> drivers/spi/spi-dw-mid.c | 6 ++----
> drivers/tty/serial/sh-sci.c | 2 +-
> drivers/usb/musb/ux500_dma.c | 7 ++-----
> drivers/video/fbdev/mx3fb.c | 3 +--
> sound/soc/txx9/txx9aclc.c | 7 +++----
> 12 files changed, 20 insertions(+), 34 deletions(-)
>
> --
> To unsubscribe from this list: send the line "unsubscribe dmaengine" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
--
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: [PATCH 03/12] [media] V4L2: mx3_camer: use dmaengine_pause() API
2014-10-11 15:40 ` [PATCH 03/12] [media] V4L2: mx3_camer: use dmaengine_pause() API Vinod Koul
@ 2014-10-16 19:40 ` Guennadi Liakhovetski
0 siblings, 0 replies; 28+ messages in thread
From: Guennadi Liakhovetski @ 2014-10-16 19:40 UTC (permalink / raw)
To: Vinod Koul; +Cc: dmaengine, Mauro Carvalho Chehab, linux-media, linux-kernel
On Sat, 11 Oct 2014, Vinod Koul wrote:
> The drivers should use dmaengine_pause() API instead of
> accessing the device_control which will be deprecated soon
>
> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Acked-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Thanks
Guennadi
> ---
> drivers/media/platform/soc_camera/mx3_camera.c | 6 ++----
> 1 files changed, 2 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/media/platform/soc_camera/mx3_camera.c b/drivers/media/platform/soc_camera/mx3_camera.c
> index 83315df..7696a87 100644
> --- a/drivers/media/platform/soc_camera/mx3_camera.c
> +++ b/drivers/media/platform/soc_camera/mx3_camera.c
> @@ -415,10 +415,8 @@ static void mx3_stop_streaming(struct vb2_queue *q)
> struct mx3_camera_buffer *buf, *tmp;
> unsigned long flags;
>
> - if (ichan) {
> - struct dma_chan *chan = &ichan->dma_chan;
> - chan->device->device_control(chan, DMA_PAUSE, 0);
> - }
> + if (ichan)
> + dmaengine_pause(&ichan->dma_chan);
>
> spin_lock_irqsave(&mx3_cam->lock, flags);
>
> --
> 1.7.0.4
>
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: [PATCH 02/12] dmaengine: coh901318: use dmaengine_terminate_all() API
2014-10-11 15:40 ` [PATCH 02/12] dmaengine: coh901318: " Vinod Koul
@ 2014-10-27 16:43 ` Linus Walleij
0 siblings, 0 replies; 28+ messages in thread
From: Linus Walleij @ 2014-10-27 16:43 UTC (permalink / raw)
To: Vinod Koul; +Cc: dmaengine, Dan Williams, linux-arm-kernel, linux-kernel
On Sat, Oct 11, 2014 at 5:40 PM, Vinod Koul <vinod.koul@intel.com> wrote:
> The drivers should use dmaengine_terminate_all() API instead of accessing
> the device_control which will be deprecated soon
>
> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Yours,
Linus Walleij
^ permalink raw reply [flat|nested] 28+ messages in thread
* Re: [PATCH 04/12] mtd: fsmc_nand: use dmaengine_terminate_all() API
2014-10-11 15:40 ` [PATCH 04/12] mtd: fsmc_nand: use dmaengine_terminate_all() API Vinod Koul
@ 2014-10-27 16:43 ` Linus Walleij
0 siblings, 0 replies; 28+ messages in thread
From: Linus Walleij @ 2014-10-27 16:43 UTC (permalink / raw)
To: Vinod Koul
Cc: dmaengine, David Woodhouse, Brian Norris, Jingoo Han, Mark Brown,
Bartlomiej Zolnierkiewicz, linux-mtd, linux-kernel
On Sat, Oct 11, 2014 at 5:40 PM, Vinod Koul <vinod.koul@intel.com> wrote:
> The drivers should use dmaengine_terminate_all() API instead of
> accessing the device_control which will be deprecated soon
>
> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Yours,
Linus Walleij
^ permalink raw reply [flat|nested] 28+ messages in thread
end of thread, other threads:[~2014-10-27 16:43 UTC | newest]
Thread overview: 28+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-10-11 15:39 [PATCH 00/12] dmaengine: remove users of device_control Vinod Koul
2014-10-11 15:40 ` [PATCH 01/12] pata_arasan_cf: use dmaengine_terminate_all() API Vinod Koul
2014-10-13 2:47 ` Viresh Kumar
2014-10-11 15:40 ` [PATCH 02/12] dmaengine: coh901318: " Vinod Koul
2014-10-27 16:43 ` Linus Walleij
2014-10-11 15:40 ` [PATCH 03/12] [media] V4L2: mx3_camer: use dmaengine_pause() API Vinod Koul
2014-10-16 19:40 ` Guennadi Liakhovetski
2014-10-11 15:40 ` [PATCH 04/12] mtd: fsmc_nand: use dmaengine_terminate_all() API Vinod Koul
2014-10-27 16:43 ` Linus Walleij
2014-10-11 15:40 ` [PATCH 05/12] mtd: sh_flctl: " Vinod Koul
2014-10-11 17:19 ` Laurent Pinchart
2014-10-11 15:40 ` [PATCH 06/12] net: ks8842: " Vinod Koul
2014-10-11 15:40 ` [PATCH 07/12] spi/atmel: " Vinod Koul
2014-10-12 20:06 ` Nicolas Ferre
2014-10-13 10:30 ` Mark Brown
2014-10-11 15:40 ` [PATCH 08/12] spi/spi-dw-mid.c: use dmaengine_slave_config() API Vinod Koul
2014-10-13 10:32 ` Mark Brown
2014-10-11 15:40 ` [PATCH 09/12] serial: sh-sci: use dmaengine_terminate_all() API Vinod Koul
2014-10-11 20:21 ` Greg Kroah-Hartman
2014-10-11 15:40 ` [PATCH 10/12] usb: musb: ux500_dma: use dmaengine_xxx() APIs Vinod Koul
2014-10-11 20:21 ` Greg Kroah-Hartman
2014-10-12 0:45 ` Felipe Balbi
2014-10-11 15:40 ` [PATCH 11/12] ASoC: txx9: use dmaengine_terminate_all() API Vinod Koul
2014-10-11 16:21 ` Lars-Peter Clausen
2014-10-11 15:54 ` Vinod Koul
2014-10-13 7:44 ` Mark Brown
2014-10-11 15:40 ` [PATCH 12/12] video: mx3fb: " Vinod Koul
2014-10-15 15:58 ` [PATCH 00/12] dmaengine: remove users of device_control Vinod Koul
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).