Skip to contentSkip to conversation

iio: buffer-dmaengine: Use dma_request_chan() directly for channel request

PATCH In review Peter Ujfalusi 4 participants 5 messages Nov 13, 2019 – Jan 8, 2020 IIO

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 iio: buffer-dmaengine: Use dma_request_chan() directly for channel request

dma_request_slave_channel_reason() is:
#define dma_request_slave_channel_reason(dev, name) \
dma_request_chan(dev, name)

---
 drivers/iio/buffer/industrialio-buffer-dmaengine.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/iio/buffer/industrialio-buffer-dmaengine.c +1 -1
index bea4a75e92f1..b7b5a934e9b2 100644
@@ -150,7 +150,7 @@ struct iio_buffer *iio_dmaengine_buffer_alloc(struct device *dev,
 	if (!dmaengine_buffer)
 		return ERR_PTR(-ENOMEM);
 
-	chan = dma_request_slave_channel_reason(dev, channel);
+	chan = dma_request_chan(dev, channel);
 	if (IS_ERR(chan)) {
 		ret = PTR_ERR(chan);
 		goto err_free;
Signature · 4 lines
Peter

Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki.
Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki
Reviewed-by on v1 1/1
#1 lore raw
Quoted 3 lines · Peter Ujfalusi

dma_request_slave_channel_reason() is:
#define dma_request_slave_channel_reason(dev, name) \
dma_request_chan(dev, name)

Signature · 1 line
~Vinod
maintainer
#2 lore raw
Quoted 7 lines · On Thu, 14 Nov 2019 10:03:18 +0530 Vinod Koul <[email protected]> wrote:
Quoted 3 lines · Peter Ujfalusi

dma_request_slave_channel_reason() is:
#define dma_request_slave_channel_reason(dev, name) \
dma_request_chan(dev, name)

Applied to the togreg branch of iio.git and pushed out as testing for the autobuilders to play with it.

Thanks,

Jonathan

#3 lore raw

Jonathan,

Quoted 8 lines · Jonathan Cameron
Quoted 5 lines · On Thu, 14 Nov 2019 10:03:18 +0530 Vinod Koul <[email protected]> wrote:
Quoted 3 lines · Peter Ujfalusi

dma_request_slave_channel_reason() is:
#define dma_request_slave_channel_reason(dev, name) \
dma_request_chan(dev, name)

Quoted 5 lines
Quoted 2 lines

Applied to the togreg branch of iio.git and pushed out as testing for the autobuilders to play with it.

The sole user in mainline for dma_request_slave_channel_reason() is industrialio-buffer-dmaengine.c (since v5.5-rc1, 5.4 had 36 users).

Are you planning to queue this patch for 5.6 (not sure if it could be sent to -rc6) so I can retire it from the dmaengine.h?

Regards,
- Péter

Quoted 5 lines

Thanks,

Jonathan

Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki

#4 lore raw
Quoted 14 lines · On Tue, 7 Jan 2020 14:19:43 +0200 Peter Ujfalusi <[email protected]> wrote:

Jonathan,

Quoted 11 lines · Jonathan Cameron
Quoted 7 lines · On Thu, 14 Nov 2019 10:03:18 +0530 Vinod Koul <[email protected]> wrote:
Quoted 3 lines · Peter Ujfalusi

dma_request_slave_channel_reason() is:
#define dma_request_slave_channel_reason(dev, name) \
dma_request_chan(dev, name)

Quoted 8 lines
Quoted 2 lines

Applied to the togreg branch of iio.git and pushed out as testing for the autobuilders to play with it.

The sole user in mainline for dma_request_slave_channel_reason() is industrialio-buffer-dmaengine.c (since v5.5-rc1, 5.4 had 36 users).

Are you planning to queue this patch for 5.6 (not sure if it could be sent to -rc6) so I can retire it from the dmaengine.h?

It's queued up for the 5.6 merge window.

Jonathan

Quoted 12 lines

Regards,
- Péter

Quoted 5 lines

Thanks,

Jonathan

Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki