Skip to contentSkip to conversation

dmaengine: remove users of device_control

PATCH Applied Vinod Koul 10 participants 28 messages Oct 11, 2014 – Oct 27, 2014

Subsystems (17)
lore
Share & tools
lore

Vinod Koul

author
#0 lore raw

cover dmaengine: remove users of device_control

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(-)
author
#3 lore raw

PATCH 2/12 dmaengine: coh901318: use dmaengine_terminate_all() API

The drivers should use dmaengine_terminate_all() API instead of accessing the device_control which will be deprecated soon

---
 drivers/dma/coh901318.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/dma/coh901318.c +1 -1
index 3c6716e..e88588d 100644
@@ -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);
 }
 
 
Signature · 1 line
1.7.0.4
author
#11 lore raw

PATCH 6/12 net: ks8842: use dmaengine_terminate_all() API

In reply to Vinod Koul

The drivers should use dmaengine_terminate_all() API instead of accessing the device_control which will be deprecated soon

---
 drivers/net/ethernet/micrel/ks8842.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)
drivers/net/ethernet/micrel/ks8842.c +2 -4
index 822616e..0c33b92 100644
@@ -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),
Signature · 1 line
1.7.0.4
author
#12 lore raw

PATCH 7/12 spi/atmel: use dmaengine_terminate_all() API

In reply to Vinod Koul

The drivers should use dmaengine_terminate_all() API instead of accessing the device_control which will be deprecated soon

---
 drivers/spi/spi-atmel.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)
drivers/spi/spi-atmel.c +2 -4
index 113c83f..649dcb5 100644
@@ -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)
Signature · 1 line
1.7.0.4
author
#15 lore raw

PATCH 8/12 spi/spi-dw-mid.c: use dmaengine_slave_config() API

In reply to Vinod Koul

The drivers should use dmaengine_slave_config() API instead of accessing the device_control which will be deprecated soon

---
 drivers/spi/spi-dw-mid.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)
drivers/spi/spi-dw-mid.c +2 -4
index 6d207af..6c8ad64 100644
@@ -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;
Signature · 1 line
1.7.0.4
author
#17 lore raw

PATCH 9/12 serial: sh-sci: use dmaengine_terminate_all() API

In reply to Vinod Koul

The drivers should use dmaengine_terminate_all() API instead of accessing the device_control which will be deprecated soon

---
 drivers/tty/serial/sh-sci.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/tty/serial/sh-sci.c +1 -1
index 3081e46..eb17c71 100644
@@ -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);
 
Signature · 1 line
1.7.0.4
author
#26 lore raw

PATCH 12/12 video: mx3fb: use dmaengine_terminate_all() API

In reply to Vinod Koul

The drivers should use dmaengine_terminate_all() API instead of accessing the device_control which will be deprecated soon

---
 drivers/video/fbdev/mx3fb.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
drivers/video/fbdev/mx3fb.c +1 -2
index c645a0a..cdbc93a 100644
@@ -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;
 }
Signature · 1 line
1.7.0.4
author
#24 lore raw

Re: [PATCH 11/12] ASoC: txx9: use dmaengine_terminate_all() API

In reply to Lars-Peter Clausen
Quoted 5 lines · Lars-Peter Clausen
Quoted 2 lines · Vinod Koul

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

Signature · 1 line
~Vinod
author
#1 lore raw

PATCH 1/12 pata_arasan_cf: use dmaengine_terminate_all() API

In reply to Vinod Koul

The drivers should use dmaengine_terminate_all() API instead of accessing the device_control which will be deprecated soon

---
 drivers/ata/pata_arasan_cf.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
drivers/ata/pata_arasan_cf.c +2 -3
index 4edb1a8..38216b9 100644
@@ -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);
Signature · 1 line
1.7.0.4
author
#5 lore raw

PATCH 3/12 V4L2: mx3_camer: use dmaengine_pause() API

In reply to Vinod Koul

The drivers should use dmaengine_pause() API instead of accessing the device_control which will be deprecated soon

---
 drivers/media/platform/soc_camera/mx3_camera.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)
drivers/media/platform/soc_camera/mx3_camera.c +2 -4
index 83315df..7696a87 100644
@@ -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);
 
Signature · 1 line
1.7.0.4
author
#7 lore raw

PATCH 4/12 mtd: fsmc_nand: use dmaengine_terminate_all() API

In reply to Vinod Koul

The drivers should use dmaengine_terminate_all() API instead of accessing the device_control which will be deprecated soon

---
 drivers/mtd/nand/fsmc_nand.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/mtd/nand/fsmc_nand.c +1 -1
index 1550692..7a91587 100644
@@ -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;
Signature · 1 line
1.7.0.4
author
#9 lore raw

PATCH 5/12 mtd: sh_flctl: use dmaengine_terminate_all() API

In reply to Vinod Koul

The drivers should use dmaengine_terminate_all() API instead of accessing the device_control which will be deprecated soon

---
 drivers/mtd/nand/sh_flctl.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/mtd/nand/sh_flctl.c +1 -1
index c067023..0ed7c60 100644
@@ -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");
 	}
 
Signature · 1 line
1.7.0.4
author
#19 lore raw

PATCH 10/12 usb: musb: ux500_dma: use dmaengine_xxx() APIs

In reply to Vinod Koul

The drivers should use dmaengine_terminate_all() or dmaengine_slave_config() API instead of accessing the device_control which will be deprecated soon

---
 drivers/usb/musb/ux500_dma.c |    7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)
drivers/usb/musb/ux500_dma.c +2 -5
index 9aad00f..874833d 100644
@@ -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;
Signature · 1 line
1.7.0.4
author
#22 lore raw

PATCH 11/12 ASoC: txx9: use dmaengine_terminate_all() API

In reply to Vinod Koul

The drivers should use dmaengine_terminate_all() API instead of accessing the device_control which will be deprecated soon

---
 sound/soc/txx9/txx9aclc.c |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)
sound/soc/txx9/txx9aclc.c +3 -4
index f0829de..3b122cd 100644
@@ -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;
Signature · 1 line
1.7.0.4
#23 lore raw

Re: [PATCH 11/12] ASoC: txx9: use dmaengine_terminate_all() API

Quoted 2 lines · Vinod Koul

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.

Quoted 2 lines
Acked-by on v1 5/12
#10 lore raw

Re: [PATCH 05/12] mtd: sh_flctl: use dmaengine_terminate_all() API

In reply to Vinod Koul
Quoted 4 lines · 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

Quoted 16 lines
---
 drivers/mtd/nand/sh_flctl.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/mtd/nand/sh_flctl.c +1 -1
index c067023..0ed7c60 100644
@@ -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");
 	}
Signature · 3 lines
Regards,

Laurent Pinchart
#21 lore raw

Re: [PATCH 10/12] usb: musb: ux500_dma: use dmaengine_xxx() APIs

In reply to Vinod Koul

Hi,

Quoted 4 lines · Vinod Koul

The drivers should use dmaengine_terminate_all() or dmaengine_slave_config() API instead of accessing the device_control which will be deprecated soon

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 ;-)

Signature · 1 line
balbi
Acked-by on v1 7/12
#13 lore raw

Re: [PATCH 07/12] spi/atmel: use dmaengine_terminate_all() API

In reply to Vinod Koul

On 11/10/2014 17:40, Vinod Koul :

Quoted 4 lines

The drivers should use dmaengine_terminate_all() API instead of accessing the device_control which will be deprecated soon

sure:

Thanks Vinod.

Bye,

Quoted 23 lines
---
 drivers/spi/spi-atmel.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)
drivers/spi/spi-atmel.c +2 -4
index 113c83f..649dcb5 100644
@@ -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)
Signature · 5 lines
Nicolas Ferre
--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Acked-by on v1 1/12
#2 lore raw

Re: [PATCH 01/12] pata_arasan_cf: use dmaengine_terminate_all() API

In reply to Vinod Koul
Quoted 22 lines · Vinod Koul

The drivers should use dmaengine_terminate_all() API instead of accessing the device_control which will be deprecated soon

---
 drivers/ata/pata_arasan_cf.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
drivers/ata/pata_arasan_cf.c +1 -1
index 4edb1a8..38216b9 100644
@@ -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;
        }

drivers/ata/pata_arasan_cf.c static int arasan_cf_suspend(struct device *dev) · line 934

Quoted 9 lines
drivers/ata/pata_arasan_cf.c +1 -2
@@ -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);
maintainer
#25 lore raw

Re: [PATCH 11/12] ASoC: txx9: use dmaengine_terminate_all() API

In reply to Vinod Koul
Quoted 8 lines · Vinod Koul
Quoted 1 line · Lars-Peter Clausen

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.

maintainer Applied
#14 lore raw

Re: [PATCH 07/12] spi/atmel: use dmaengine_terminate_all() API

In reply to Vinod Koul
Quoted 2 lines · Vinod Koul

The drivers should use dmaengine_terminate_all() API instead of accessing the device_control which will be deprecated soon

Applied, thanks.

maintainer Applied
#16 lore raw

Re: [PATCH 08/12] spi/spi-dw-mid.c: use dmaengine_slave_config() API

In reply to Vinod Koul
Quoted 2 lines · Vinod Koul

The drivers should use dmaengine_slave_config() API instead of accessing the device_control which will be deprecated soon

Applied, thanks.

author
#27 lore raw
In reply to Vinod Koul
Quoted 9 lines · Vinod Koul

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

Signature · 1 line
~Vinod
Quoted 38 lines

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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

Acked-by on v1 3/12
#6 lore raw

Re: [PATCH 03/12] [media] V4L2: mx3_camer: use dmaengine_pause() API

In reply to Vinod Koul
Quoted 4 lines · Vinod Koul

The drivers should use dmaengine_pause() API instead of accessing the device_control which will be deprecated soon

Thanks
Guennadi

Quoted 24 lines
---
 drivers/media/platform/soc_camera/mx3_camera.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)
drivers/media/platform/soc_camera/mx3_camera.c +2 -4
index 83315df..7696a87 100644
@@ -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);
 
Signature · 1 line
1.7.0.4