]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
dmaengine: qcom: gpi: set DMA_PRIVATE capability
authorIcenowy Zheng <zhengxingda@iscas.ac.cn>
Tue, 2 Jun 2026 07:03:44 +0000 (15:03 +0800)
committerVinod Koul <vkoul@kernel.org>
Mon, 8 Jun 2026 11:32:21 +0000 (17:02 +0530)
The GPI DMA controller is only responsible for QUP peripherals, and
cannot work as a general-purpose DMA accelerator.

Set DMA_PRIVATE capability for it.

This fixes error messages about GPI being shown when an async-tx
consumer is loaded.

Fixes: 5d0c3533a19f ("dmaengine: qcom: Add GPI dma driver")
Signed-off-by: Icenowy Zheng <zhengxingda@iscas.ac.cn>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Link: https://patch.msgid.link/20260602070344.3707256-1-zhengxingda@iscas.ac.cn
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/qcom/gpi.c

index c9a6f610ffd9fa8af23f80d27743a97a2941deb0..a5055a6273af62543532c41620556503dab35ea0 100644 (file)
@@ -2260,6 +2260,7 @@ static int gpi_probe(struct platform_device *pdev)
        /* clear and Set capabilities */
        dma_cap_zero(gpi_dev->dma_device.cap_mask);
        dma_cap_set(DMA_SLAVE, gpi_dev->dma_device.cap_mask);
+       dma_cap_set(DMA_PRIVATE, gpi_dev->dma_device.cap_mask);
 
        /* configure dmaengine apis */
        gpi_dev->dma_device.directions = BIT(DMA_DEV_TO_MEM) | BIT(DMA_MEM_TO_DEV);