Skip to contentSkip to conversation

ASoC: Intel: Remove support for Intel MID DMA from firmware loader

PATCH Applied Jarkko Nikula 3 participants 7 messages Mar 18, 2015

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/2 ASoC: Intel: Remove support for Intel MID DMA from firmware loader

Intel MID DMA driver is going to be removed by the coming commit 36111da7838e ("dmaengine: intel-mid-dma: remove the driver") in spi.git tree. Since there are no users for SST_DMA_TYPE_MID type the support for it can be removed from here in advance.

---
 sound/soc/intel/sst-dsp.h      | 1 -
 sound/soc/intel/sst-firmware.c | 3 ---
 2 files changed, 4 deletions(-)
sound/soc/intel/sst-dsp.h +0 -1
index f291e32f0077..3412474083ff 100644
@@ -28,7 +28,6 @@
 
 /* Supported SST DMA Devices */
 #define SST_DMA_TYPE_DW		1
-#define SST_DMA_TYPE_MID	2
 
 /* autosuspend delay 5s*/
 #define SST_RUNTIME_SUSPEND_DELAY	(5 * 1000)
sound/soc/intel/sst-firmware.c +0 -3
index 5e5800897da2..38881f1fb990 100644
@@ -277,9 +277,6 @@ int sst_dma_new(struct sst_dsp *sst)
 	case SST_DMA_TYPE_DW:
 		dma_dev_name = "dw_dmac";
 		break;
-	case SST_DMA_TYPE_MID:
-		dma_dev_name = "Intel MID DMA";
-		break;
 	default:
 		dev_err(sst->dev, "error: invalid DMA engine %d\n",
 			sst->pdata->dma_engine);
Signature · 1 line
2.1.4
#1 lore raw

PATCH 2/2 ASoC: Intel: Remove vague commit about slave DMA config from firmware loader

Intel MID DMA driver is going to be removed, commit should be a few lines down near to dmaengine_slave_config() call in order to not confuse and at quick look Synopsys DesignWare does seem to use some of the slave config structure fields (see drivers/dma/dw/core.c: dwc_config()).

---
 sound/soc/intel/sst-firmware.c | 2 --
 1 file changed, 2 deletions(-)
sound/soc/intel/sst-firmware.c +0 -2
index 38881f1fb990..b5659ecb80de 100644
@@ -221,8 +221,6 @@ int sst_dsp_dma_get_channel(struct sst_dsp *dsp, int chan_id)
 	dma_cap_mask_t mask;
 	int ret;
 
-	/* The Intel MID DMA engine driver needs the slave config set but
-	 * Synopsis DMA engine driver safely ignores the slave config */
 	dma_cap_zero(mask);
 	dma_cap_set(DMA_SLAVE, mask);
 	dma_cap_set(DMA_MEMCPY, mask);
Signature · 1 line
2.1.4
maintainer Applied
#2 lore raw

Re: [PATCH 2/2] ASoC: Intel: Remove vague commit about slave DMA config from firmware loader

Quoted 4 lines · Jarkko Nikula

Intel MID DMA driver is going to be removed, commit should be a few lines down near to dmaengine_slave_config() call in order to not confuse and at quick look Synopsys DesignWare does seem to use some of the slave config structure fields (see drivers/dma/dw/core.c: dwc_config()).

Applied both, thanks.

maintainer
#3 lore raw
In reply to Jarkko Nikula
Quoted 4 lines · Jarkko Nikula

Intel MID DMA driver is going to be removed by the coming commit 36111da7838e ("dmaengine: intel-mid-dma: remove the driver") in spi.git tree. Since there are no users for SST_DMA_TYPE_MID type the support for it can be removed from here in advance.

So "only user" wasn't exactly true there then...

#4 lore raw
Quoted 7 lines · Mark Brown
Quoted 4 lines · Jarkko Nikula

Intel MID DMA driver is going to be removed by the coming commit 36111da7838e ("dmaengine: intel-mid-dma: remove the driver") in spi.git tree. Since there are no users for SST_DMA_TYPE_MID type the support for it can be removed from here in advance.

So "only user" wasn't exactly true there then...

SST has support of both intel_mid_dma and dw_dmac for a while, but SPI DW hasn't. That's why the only user.

Signature · 2 lines
Andy Shevchenko <[email protected]>
Intel Finland Oy
maintainer
#5 lore raw
Quoted 8 lines · Andy Shevchenko
Quoted 6 lines · Mark Brown
Quoted 4 lines · Jarkko Nikula

Intel MID DMA driver is going to be removed by the coming commit 36111da7838e ("dmaengine: intel-mid-dma: remove the driver") in spi.git tree. Since there are no users for SST_DMA_TYPE_MID type the support for it can be removed from here in advance.

Quoted 4 lines
Quoted 1 line

So "only user" wasn't exactly true there then...

SST has support of both intel_mid_dma and dw_dmac for a while, but SPI DW hasn't. That's why the only user.

OK, so that's "only thing that relies on it" or something rather than only user - only user suggests there's no need to worry about cleanup of dependencies and users elsewhere.

#6 lore raw
Quoted 9 lines · Mark Brown
Quoted 7 lines · Andy Shevchenko
Quoted 6 lines · Mark Brown
Quoted 4 lines · Jarkko Nikula

Intel MID DMA driver is going to be removed by the coming commit 36111da7838e ("dmaengine: intel-mid-dma: remove the driver") in spi.git tree. Since there are no users for SST_DMA_TYPE_MID type the support for it can be removed from here in advance.

Quoted 8 lines
Quoted 4 lines
Quoted 1 line

So "only user" wasn't exactly true there then...

SST has support of both intel_mid_dma and dw_dmac for a while, but SPI DW hasn't. That's why the only user.

OK, so that's "only thing that relies on it" or something rather than only user - only user suggests there's no need to worry about cleanup of dependencies and users elsewhere.

Noted, that's right. Thanks.

Signature · 2 lines
Andy Shevchenko <[email protected]>
Intel Finland Oy