Skip to contentSkip to conversation

ASoC et alia: Convert to use dma_request_chan()

PATCH In review Andy Shevchenko 5 participants 14 messages Sep 18 – Sep 21

Subsystems (10)
Sound ASoC Arm STM32 dmaengine +6 more subsystems
lore
Share & tools
lore
#2 lore raw

PATCH v2 2/7 ASoC: sprd: Replace dma_request_slave_channel() by dma_request_chan()

In reply to Andy Shevchenko

Replace dma_request_slave_channel() by dma_request_chan() as suggested since the former is deprecated. With this, propagate all possible errors to the caller.

---
 sound/soc/sprd/sprd-pcm-compress.c | 9 +++++----
 sound/soc/sprd/sprd-pcm-dma.c      | 9 +++++----
 2 files changed, 10 insertions(+), 8 deletions(-)
sound/soc/sprd/sprd-pcm-compress.c +5 -4
index e5249924b54d..f394121d417a 100644
@@ -145,6 +145,7 @@ static int sprd_platform_compr_dma_config(struct snd_soc_component *component,
 	enum dma_slave_buswidth bus_width;
 	int period, period_cnt, sg_num = 2;
 	dma_addr_t src_addr, dst_addr;
+	struct dma_chan *chan;
 	unsigned long flags;
 	int ret, j;
 
@@ -153,12 +154,12 @@ static int sprd_platform_compr_dma_config(struct snd_soc_component *component,
 		return -EINVAL;
 	}
 
-	dma->chan = dma_request_slave_channel(dev,
-					      dma_params->chan_name[channel]);
-	if (!dma->chan) {
+	chan = dma_request_chan(dev, dma_params->chan_name[channel]);
+	if (IS_ERR(chan)) {
 		dev_err(dev, "failed to request dma channel\n");
-		return -ENODEV;
+		return PTR_ERR(chan);
 	}
+	dma->chan = chan;
 
 	sgt = sg = kzalloc_objs(*sg, sg_num);
 	if (!sg) {
sound/soc/sprd/sprd-pcm-dma.c +5 -4
index 2d5ffbe17e81..2a89dc7616bf 100644
@@ -170,15 +170,16 @@ static int sprd_pcm_request_dma_channel(struct snd_soc_component *component,
 
 	for (i = 0; i < channels; i++) {
 		struct sprd_pcm_dma_data *data = &dma_private->data[i];
+		struct dma_chan *chan;
 
-		data->chan = dma_request_slave_channel(dev,
-						       dma_params->chan_name[i]);
-		if (!data->chan) {
+		chan = dma_request_chan(dev, dma_params->chan_name[i]);
+		if (IS_ERR(chan)) {
 			dev_err(dev, "failed to request dma channel:%s\n",
 				dma_params->chan_name[i]);
 			sprd_pcm_release_dma_channel(substream);
-			return -ENODEV;
+			return PTR_ERR(chan);
 		}
+		data->chan = chan;
 	}
 
 	return 0;
Signature · 1 line
2.50.1
#1 lore raw

PATCH v2 1/7 ASoC: stm32: spdifrx: Drop mention of the deprecated and unused call

In reply to Andy Shevchenko

The error message was not updated while driver moved from the deprecated dma_request_slave_channel() to the dma_request_chan(). Update the message by replacing it with the correct function.

---
 sound/soc/stm/stm32_spdifrx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/stm/stm32_spdifrx.c +1 -1
index e0fef47a227e..0ece54740773 100644
@@ -400,7 +400,7 @@ static int stm32_spdifrx_dma_ctrl_register(struct device *dev,
 	spdifrx->ctrl_chan = dma_request_chan(dev, "rx-ctrl");
 	if (IS_ERR(spdifrx->ctrl_chan))
 		return dev_err_probe(dev, PTR_ERR(spdifrx->ctrl_chan),
-				     "dma_request_slave_channel error\n");
+				     "dma_request_chan error\n");
 
 	spdifrx->dmab = devm_kzalloc(dev, sizeof(struct snd_dma_buffer),
 				     GFP_KERNEL);
Signature · 1 line
2.50.1
#4 lore raw

PATCH v2 3/7 ASoC: soc-generic-dmaengine-pcm: Replace dma_request_slave_channel() by dma_request_chan()

In reply to Andy Shevchenko

Replace dma_request_slave_channel() by dma_request_chan() as suggested since the former is deprecated.

---
 sound/soc/soc-generic-dmaengine-pcm.c | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)
sound/soc/soc-generic-dmaengine-pcm.c +5 -3
index 65b7ec52a054..6d1dbee8f6c1 100644
@@ -242,9 +242,11 @@ static int dmaengine_pcm_new(struct snd_soc_component *component,
 		if (!substream)
 			continue;
 
-		if (!pcm->chan[i] && config->chan_names[i])
-			pcm->chan[i] = dma_request_slave_channel(dev,
-				config->chan_names[i]);
+		if (!pcm->chan[i] && config->chan_names[i]) {
+			pcm->chan[i] = dma_request_chan(dev, config->chan_names[i]);
+			if (IS_ERR(pcm->chan[i]))
+				pcm->chan[i] = NULL;
+		}
 
 		if (!pcm->chan[i] && (pcm->flags & SND_DMAENGINE_PCM_FLAG_COMPAT)) {
 			pcm->chan[i] = dmaengine_pcm_compat_request_channel(
Signature · 1 line
2.50.1
#5 lore raw

PATCH v2 4/7 ASoC: pxa: Replace dma_request_slave_channel() by dma_request_chan()

In reply to Andy Shevchenko

Replace dma_request_slave_channel() by dma_request_chan() as suggested since the former is deprecated.

---
 sound/soc/pxa/pxa2xx-pcm-lib.c | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)
sound/soc/pxa/pxa2xx-pcm-lib.c +6 -3
index 88a9d3226302..4b5b07f0c444 100644
@@ -79,6 +79,7 @@ static int pxa2xx_pcm_open(struct snd_pcm_substream *substream)
 	struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream);
 	struct snd_pcm_runtime *runtime = substream->runtime;
 	struct snd_dmaengine_dai_dma_data *dma_params;
+	struct dma_chan *chan;
 	int ret;
 
 	runtime->hw = pxa2xx_pcm_hardware;
@@ -107,9 +108,11 @@ static int pxa2xx_pcm_open(struct snd_pcm_substream *substream)
 	if (ret < 0)
 		return ret;
 
-	return snd_dmaengine_pcm_open(
-		substream, dma_request_slave_channel(snd_soc_rtd_to_cpu(rtd, 0)->dev,
-						     dma_params->chan_name));
+	chan = dma_request_chan(snd_soc_rtd_to_cpu(rtd, 0)->dev, dma_params->chan_name);
+	if (IS_ERR(chan))
+		return -ENXIO;
+
+	return snd_dmaengine_pcm_open(substream, chan);
 }
 
 static int pxa2xx_pcm_close(struct snd_pcm_substream *substream)
Signature · 1 line
2.50.1
#0 lore raw

v2 cover ASoC et alia: Convert to use dma_request_chan()

Convert the last users (mostly in ASoC) to use dma_request_chan() and drop deprecated dma_request_slave_channel() completely.

I think the best is to allow Mark to take the whole lot and provide an immutable tag or branch to others (DMAengine and GPIB).

Changelog v2:
- Add a comment that errors are now propagated to the caller (Frank)
- Make sure the error pointer is not dereferenced (Sashiko, Mark)
- Collected tags

v1: <[email protected]>

Andy Shevchenko (7):
ASoC: stm32: spdifrx: Drop mention of the deprecated and unused call
ASoC: sprd: Replace dma_request_slave_channel() by dma_request_chan()
ASoC: soc-generic-dmaengine-pcm: Replace dma_request_slave_channel()
by dma_request_chan()
ASoC: pxa: Replace dma_request_slave_channel() by dma_request_chan()
ASoC: fsl_asrc: Replace dma_request_slave_channel() by
dma_request_chan()
gpib: fmh_gpib: Replace dma_request_slave_channel() by
dma_request_chan()
dmaengine: Remove deprecated dma_request_slave_channel()

 drivers/gpib/fmh_gpib/fmh_gpib.c      | 10 +++++++---
 include/linux/dmaengine.h             |  9 ---------
 sound/soc/fsl/fsl_asrc.c              |  2 +-
 sound/soc/fsl/fsl_asrc_dma.c          | 19 +++++++++++--------
 sound/soc/fsl/fsl_asrc_m2m.c          | 15 +++++++++------
 sound/soc/fsl/fsl_easrc.c             |  2 +-
 sound/soc/pxa/pxa2xx-pcm-lib.c        |  9 ++++++---
 sound/soc/soc-generic-dmaengine-pcm.c |  8 +++++---
 sound/soc/sprd/sprd-pcm-compress.c    |  9 +++++----
 sound/soc/sprd/sprd-pcm-dma.c         |  9 +++++----
 sound/soc/stm/stm32_spdifrx.c         |  2 +-
 11 files changed, 51 insertions(+), 43 deletions(-)
Signature · 1 line
2.50.1
#6 lore raw

PATCH v2 5/7 ASoC: fsl_asrc: Replace dma_request_slave_channel() by dma_request_chan()

Replace dma_request_slave_channel() by dma_request_chan() as suggested since the former is deprecated. With this, propagate all possible errors to the caller.

---
 sound/soc/fsl/fsl_asrc.c     |  2 +-
 sound/soc/fsl/fsl_asrc_dma.c | 19 +++++++++++--------
 sound/soc/fsl/fsl_asrc_m2m.c | 15 +++++++++------
 sound/soc/fsl/fsl_easrc.c    |  2 +-
 4 files changed, 22 insertions(+), 16 deletions(-)
sound/soc/fsl/fsl_asrc.c +1 -1
index b24737add001..ae682bf450f6 100644
@@ -638,7 +638,7 @@ static struct dma_chan *fsl_asrc_get_dma_channel(struct fsl_asrc_pair *pair,
 
 	sprintf(name, "%cx%c", dir == IN ? 'r' : 't', index + 'a');
 
-	return dma_request_slave_channel(&asrc->pdev->dev, name);
+	return dma_request_chan(&asrc->pdev->dev, name);
 }
 
 static int fsl_asrc_dai_startup(struct snd_pcm_substream *substream,
sound/soc/fsl/fsl_asrc_dma.c +11 -8
index 2f662bdf14d0..86489f70e262 100644
@@ -136,8 +136,8 @@ static int fsl_asrc_dma_hw_params(struct snd_soc_component *component,
 	struct snd_dmaengine_dai_dma_data *dma_params_be = NULL;
 	struct snd_pcm_runtime *runtime = substream->runtime;
 	struct fsl_asrc_pair *pair = runtime->private_data;
-	struct dma_chan *tmp_chan = NULL, *be_chan = NULL;
 	struct snd_soc_component *component_be = NULL;
+	struct dma_chan *tmp_chan, *be_chan = NULL;
 	struct fsl_asrc *asrc = pair->asrc;
 	struct dma_slave_config config_fe = {}, config_be = {};
 	struct sdma_peripheral_config audio_config;
@@ -190,11 +190,12 @@ static int fsl_asrc_dma_hw_params(struct snd_soc_component *component,
 	dma_params_fe->addr = asrc->paddr + asrc->get_fifo_addr(!dir, index);
 	dma_params_fe->maxburst = dma_params_be->maxburst;
 
-	pair->dma_chan[!dir] = asrc->get_dma_channel(pair, !dir);
-	if (!pair->dma_chan[!dir]) {
+	tmp_chan = asrc->get_dma_channel(pair, !dir);
+	if (IS_ERR(tmp_chan)) {
 		dev_err(dev, "failed to request DMA channel\n");
-		return -EINVAL;
+		return PTR_ERR(tmp_chan);
 	}
+	pair->dma_chan[!dir] = tmp_chan;
 
 	ret = snd_dmaengine_pcm_prepare_slave_config(substream, params, &config_fe);
 	if (ret) {
@@ -223,6 +224,8 @@ static int fsl_asrc_dma_hw_params(struct snd_soc_component *component,
 
 		be_chan = pcm->chan[substream->stream];
 		tmp_chan = be_chan;
+	} else {
+		tmp_chan = NULL;
 	}
 	if (!tmp_chan) {
 		tmp_chan = dma_request_chan(dev_be, tx ? "tx" : "rx");
@@ -404,9 +407,9 @@ static int fsl_asrc_dma_startup(struct snd_soc_component *component,
 
 	/* Request a dummy dma channel, which will be released later. */
 	tmp_chan = asrc->get_dma_channel(pair, dir);
-	if (!tmp_chan) {
+	ret = PTR_ERR_OR_ZERO(tmp_chan);
+	if (ret) {
 		dev_err(dev, "failed to get dma channel\n");
-		ret = -EINVAL;
 		goto dma_chan_err;
 	}
 
@@ -497,9 +500,9 @@ static int fsl_asrc_dma_pcm_new(struct snd_soc_component *component,
 
 	/* Request a dma channel, which will be released later. */
 	chan = asrc->get_dma_channel(pair, IN);
-	if (!chan) {
+	ret = PTR_ERR_OR_ZERO(chan);
+	if (ret) {
 		dev_err(dev, "failed to get dma channel\n");
-		ret = -EINVAL;
 		goto dma_chan_err;
 	}
 
sound/soc/fsl/fsl_asrc_m2m.c +9 -6
index 4bc40f328f58..e7b91196d35b 100644
@@ -466,6 +466,7 @@ static int fsl_asrc_m2m_comp_task_create(struct snd_compr_stream *stream,
 	struct snd_compr_runtime *runtime = stream->runtime;
 	struct fsl_asrc_pair *pair = runtime->private_data;
 	struct device *dev = &asrc->pdev->dev;
+	struct dma_chan *tmp_chan;
 	int ret;
 
 	exp_info_in.ops = &fsl_asrc_m2m_dma_buf_ops;
@@ -502,19 +503,21 @@ static int fsl_asrc_m2m_comp_task_create(struct snd_compr_stream *stream,
 	}
 
 	/* Request dma channels */
-	pair->dma_chan[IN] = asrc->get_dma_channel(pair, IN);
-	if (!pair->dma_chan[IN]) {
+	tmp_chan = asrc->get_dma_channel(pair, IN);
+	ret = PTR_ERR_OR_ZERO(tmp_chan);
+	if (ret) {
 		dev_err(dev, "[ctx%d] failed to get input DMA channel\n", pair->index);
-		ret = -EBUSY;
 		goto err_dma_channel_in;
 	}
+	pair->dma_chan[IN] = tmp_chan;
 
-	pair->dma_chan[OUT] = asrc->get_dma_channel(pair, OUT);
-	if (!pair->dma_chan[OUT]) {
+	tmp_chan = asrc->get_dma_channel(pair, OUT);
+	ret = PTR_ERR_OR_ZERO(tmp_chan);
+	if (ret) {
 		dev_err(dev, "[ctx%d] failed to get output DMA channel\n", pair->index);
-		ret = -EBUSY;
 		goto err_dma_channel_out;
 	}
+	pair->dma_chan[OUT] = tmp_chan;
 
 	return 0;
 
sound/soc/fsl/fsl_easrc.c +1 -1
index aced16d1228a..d30cc3e90215 100644
@@ -1433,7 +1433,7 @@ static struct dma_chan *fsl_easrc_get_dma_channel(struct fsl_asrc_pair *ctx,
 	/* Example of dma name: ctx0_rx */
 	sprintf(name, "ctx%c_%cx", index + '0', dir == IN ? 'r' : 't');
 
-	return dma_request_slave_channel(&easrc->pdev->dev, name);
+	return dma_request_chan(&easrc->pdev->dev, name);
 };
 
 static const unsigned int easrc_rates[] = {
Signature · 1 line
2.50.1
#8 lore raw

PATCH v2 6/7 gpib: fmh_gpib: Replace dma_request_slave_channel() by dma_request_chan()

In reply to Andy Shevchenko

Replace dma_request_slave_channel() by dma_request_chan() as suggested since the former is deprecated. With this, propagate all possible errors to the caller.

---
 drivers/gpib/fmh_gpib/fmh_gpib.c | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)
drivers/gpib/fmh_gpib/fmh_gpib.c +7 -3
index 5e10e9353fed..4ab9b0a317fd 100644
@@ -1458,11 +1458,15 @@ static int fmh_gpib_attach_impl(struct gpib_board *board, const struct gpib_boar
 	e_priv->irq = irq;
 
 	if (acquire_dma) {
-		e_priv->dma_channel = dma_request_slave_channel(board->dev, "rxtx");
-		if (!e_priv->dma_channel) {
+		struct dma_chan *tmp_chan;
+
+		tmp_chan = dma_request_chan(board->dev, "rxtx");
+		retval = PTR_ERR_OR_ZERO(tmp_chan);
+		if (retval) {
 			dev_err(board->dev, "failed to acquire dma channel \"rxtx\".\n");
-			return -EIO;
+			return retval;
 		}
+		e_priv->dma_channel = tmp_chan;
 	}
 	/*
 	 * in the future we might want to know the half-fifo size
Signature · 1 line
2.50.1
#10 lore raw

PATCH v2 7/7 dmaengine: Remove deprecated dma_request_slave_channel()

In reply to Andy Shevchenko

No more users.

---
 include/linux/dmaengine.h | 9 ---------
 1 file changed, 9 deletions(-)
include/linux/dmaengine.h +0 -9
index c3a49a33307c..1b57bc4a7e72 100644
@@ -1768,15 +1768,6 @@ void dma_run_dependencies(struct dma_async_tx_descriptor *tx);
 #define dma_request_channel(mask, x, y) \
 	__dma_request_channel(&(mask), x, y, NULL)
 
-/* Deprecated, please use dma_request_chan() directly */
-static inline struct dma_chan * __deprecated
-dma_request_slave_channel(struct device *dev, const char *name)
-{
-	struct dma_chan *ch = dma_request_chan(dev, name);
-
-	return IS_ERR(ch) ? NULL : ch;
-}
-
 static inline struct dma_chan
 *dma_request_slave_channel_compat(const dma_cap_mask_t mask,
 				  dma_filter_fn fn, void *fn_param,
Signature · 1 line
2.50.1
#3 lore raw

Re: [PATCH v2 2/7] ASoC: sprd: Replace dma_request_slave_channel() by dma_request_chan()

In reply to Andy Shevchenko
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider: - [Medium] sprd: leak of -EPROBE_DEFER to userspace in ioctl paths --

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] sprd: leak of -EPROBE_DEFER to userspace in ioctl paths
--

commit 27b9b3ffed70e1a1411a3993c1e469b1c18205a6
Author: Andy Shevchenko <[email protected]>

ASoC: sprd: Replace dma_request_slave_channel() by dma_request_chan()

This commit replaces the deprecated dma_request_slave_channel() function with dma_request_chan() in the Spreadtrum ALSA SoC driver. It also updates the error handling to propagate all possible errors returned by the new function back to the caller.

Quoted 4 lines
sound/soc/sprd/sprd-pcm-compress.c +0 -0
index e5249924b54d9..f394121d417a3 100644

[ ... ]

sound/soc/sprd/sprd-pcm-compress.c static int sprd_platform_compr_dma_config(struct snd_soc_component *component, · line 160

Quoted 12 lines
sound/soc/sprd/sprd-pcm-compress.c +3 -4
@@ -153,12 +154,12 @@ static int sprd_platform_compr_dma_config(struct snd_soc_component *component,
 		return -EINVAL;
 	}
 
-	dma->chan = dma_request_slave_channel(dev,
-					      dma_params->chan_name[channel]);
-	if (!dma->chan) {
+	chan = dma_request_chan(dev, dma_params->chan_name[channel]);
+	if (IS_ERR(chan)) {
 		dev_err(dev, "failed to request dma channel\n");
-		return -ENODEV;
+		return PTR_ERR(chan);

[Severity: Medium]
Since sprd_platform_compr_dma_config() is called during the ALSA SNDRV_COMPRESS_SET_PARAMS ioctl path, could this propagate -EPROBE_DEFER directly to userspace if dma_request_chan() defers probing? Returning internal kernel errors like -EPROBE_DEFER to userspace can confuse user applications as it violates UAPI error semantics.

Quoted 9 lines
sound/soc/sprd/sprd-pcm-compress.c +1 -0
 	}
+	dma->chan = chan;
 
 	sgt = sg = kzalloc_objs(*sg, sg_num);
 	if (!sg) {
sound/soc/sprd/sprd-pcm-dma.c +0 -0
index 2d5ffbe17e814..2a89dc7616bf7 100644

[ ... ]

Quoted 6 lines
sound/soc/sprd/sprd-pcm-dma.c +1 -0
@@ -170,15 +170,16 @@ static int sprd_pcm_request_dma_channel(struct snd_soc_component *component,
 
 	for (i = 0; i < channels; i++) {
 		struct sprd_pcm_dma_data *data = &dma_private->data[i];
+		struct dma_chan *chan;
 

sound/soc/sprd/sprd-pcm-dma.c static int sprd_pcm_request_dma_channel(struct snd_soc_component *component, · line 180

Quoted 10 lines
sound/soc/sprd/sprd-pcm-dma.c +3 -4
-		data->chan = dma_request_slave_channel(dev,
-						       dma_params->chan_name[i]);
-		if (!data->chan) {
+		chan = dma_request_chan(dev, dma_params->chan_name[i]);
+		if (IS_ERR(chan)) {
 			dev_err(dev, "failed to request dma channel:%s\n",
 				dma_params->chan_name[i]);
 			sprd_pcm_release_dma_channel(substream);
-			return -ENODEV;
+			return PTR_ERR(chan);

[Severity: Medium]
Similarly, sprd_pcm_request_dma_channel() is invoked during the SNDRV_PCM_IOCTL_HW_PARAMS ioctl path. Does returning PTR_ERR(chan) here also risk leaking -EPROBE_DEFER to userspace if the DMA channel is not yet available?

Quoted 5 lines
sound/soc/sprd/sprd-pcm-dma.c +1 -0
 		}
+		data->chan = chan;
 	}
 
 	return 0;
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=2
#9 lore raw

Re: [PATCH v2 6/7] gpib: fmh_gpib: Replace dma_request_slave_channel() by dma_request_chan()

In reply to Andy Shevchenko
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider: - [Medium] gpib: leaking -EPROBE_DEFER to userspace via ioctl --

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] gpib: leaking -EPROBE_DEFER to userspace via ioctl
--

commit ed7181f3c8edddd4643c5d2a68386dacb851bb22
Author: Andy Shevchenko <[email protected]>

gpib: fmh_gpib: Replace dma_request_slave_channel() by dma_request_chan()

This commit replaces the deprecated dma_request_slave_channel() with dma_request_chan() in the fmh_gpib driver. It propagates the specific error code returned by dma_request_chan() rather than returning a hardcoded -EIO.

Quoted 8 lines
drivers/gpib/fmh_gpib/fmh_gpib.c +0 -0
index 5e10e9353fedd..4ab9b0a317fdb 100644
@@ -1458,11 +1458,15 @@ static int fmh_gpib_attach_impl(struct gpib_board *board, const struct gpib_boar
 	e_priv->irq = irq;
 
 	if (acquire_dma) {

drivers/gpib/fmh_gpib/fmh_gpib.c static int fmh_gpib_attach_impl(struct gpib_board *board, const struct gpib_boar · line 1467

Quoted 10 lines
drivers/gpib/fmh_gpib/fmh_gpib.c +6 -3
-		e_priv->dma_channel = dma_request_slave_channel(board->dev, "rxtx");
-		if (!e_priv->dma_channel) {
+		struct dma_chan *tmp_chan;
+
+		tmp_chan = dma_request_chan(board->dev, "rxtx");
+		retval = PTR_ERR_OR_ZERO(tmp_chan);
+		if (retval) {
 			dev_err(board->dev, "failed to acquire dma channel \"rxtx\".\n");
-			return -EIO;
+			return retval;

[Severity: Medium]
Could this leak -EPROBE_DEFER to userspace?

If dma_request_chan() fails due to an unavailable DMA controller, it returns -EPROBE_DEFER. Because fmh_gpib_attach_impl() is called when a userspace application configures the board via the IBONL ioctl:

ibioctl()
online_ioctl()
ibonline()
attach()
fmh_gpib_attach_impl()

This kernel-internal error code would be returned directly across the syscall boundary.

Userspace applications expecting standard POSIX error codes like -EIO, -EAGAIN, or -ENODEV might break when encountering -EPROBE_DEFER.

Quoted 3 lines
drivers/gpib/fmh_gpib/fmh_gpib.c +1 -0
 		}
+		e_priv->dma_channel = tmp_chan;
 	}
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=6
#12 lore raw

Re: [PATCH v2 7/7] dmaengine: Remove deprecated dma_request_slave_channel()

Quoted 7 lines · Vinod Koul
Quoted 4 lines · Andy Shevchenko

No more users.

I thought I had acked earlier one. Here is it again

This is strange. I used b4 am to collect tags, most likely it was an old version (before you sent that email). I will anyway issue a v3 and I double check that all new tags are added.

Quoted 1 line

Thank you!

Signature · 2 lines
With Best Regards,
Andy Shevchenko
maintainer
#13 lore raw
In reply to Andy Shevchenko
Quoted 9 lines · Andy Shevchenko

ASoC et alia: Convert to use dma_request_chan()

Convert the last users (mostly in ASoC) to use dma_request_chan() and drop deprecated dma_request_slave_channel() completely.

I think the best is to allow Mark to take the whole lot and provide an immutable tag or branch to others (DMAengine and GPIB).

[...]

Applied to

https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-7.4

Thanks!

[1/7] ASoC: stm32: spdifrx: Drop mention of the deprecated and unused call

      https://git.kernel.org/broonie/sound/c/a389c4dd55d5
[2/7] ASoC: sprd: Replace dma_request_slave_channel() by dma_request_chan()
      https://git.kernel.org/broonie/sound/c/08d77e31df21
[3/7] ASoC: soc-generic-dmaengine-pcm: Replace dma_request_slave_channel() by dma_request_chan()
      https://git.kernel.org/broonie/sound/c/77593bbdb8aa
[4/7] ASoC: pxa: Replace dma_request_slave_channel() by dma_request_chan()
      https://git.kernel.org/broonie/sound/c/ca11bc272ab4
[5/7] ASoC: fsl_asrc: Replace dma_request_slave_channel() by dma_request_chan()
      https://git.kernel.org/broonie/sound/c/b045248399d0
[6/7] gpib: fmh_gpib: Replace dma_request_slave_channel() by dma_request_chan()
      https://git.kernel.org/broonie/sound/c/4f846b8b69fd
[7/7] dmaengine: Remove deprecated dma_request_slave_channel()
      https://git.kernel.org/broonie/sound/c/ae710b66c715

All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying to this mail.

Thanks,
Mark