]> www.infradead.org Git - users/jedix/linux-maple.git/commit
dmaengine: ti: k3-udma: Enable second resource range for BCDMA and PKTDMA
authorSiddharth Vadapalli <s-vadapalli@ti.com>
Wed, 5 Feb 2025 12:18:01 +0000 (17:48 +0530)
committerVinod Koul <vkoul@kernel.org>
Mon, 10 Mar 2025 20:55:19 +0000 (02:25 +0530)
commit566beb347eded7a860511164a7a163bc882dc4d0
treef093a65afa7e6f7d3a3b9168bd3a8f884a387482
parentfa70c4c3c580c239a0f9e83a14770ab026e8d820
dmaengine: ti: k3-udma: Enable second resource range for BCDMA and PKTDMA

The SoC DMA resources for UDMA, BCDMA and PKTDMA can be described via a
combination of up to two resource ranges. The first resource range handles
the default partitioning wherein all resources belonging to that range are
allocated to a single entity and form a continuous range. For use-cases
where the resources are shared across multiple entities and require to be
described via discontinuous ranges, a second resource range is required.

Currently, udma_setup_resources() supports handling resources that belong
to the second range. Extend bcdma_setup_resources() and
pktdma_setup_resources() to support the same.

Signed-off-by: Siddharth Vadapalli <s-vadapalli@ti.com>
Acked-by: Peter Ujfalusi <peter.ujfalusi@gmail.com>
Link: https://lore.kernel.org/r/20250205121805.316792-1-s-vadapalli@ti.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/ti/k3-udma.c