]> git.dujemihanovic.xyz Git - u-boot.git/commit
dma: ti: k3-udma: Move DMA channel[0] allocation to probe and add udma_remove()
authorSanthosh Kumar K <s-k6@ti.com>
Wed, 9 Oct 2024 14:57:03 +0000 (20:27 +0530)
committerTom Rini <trini@konsulko.com>
Fri, 18 Oct 2024 00:21:19 +0000 (18:21 -0600)
commitf83076add0fcc3d062c8183d905e7fc15236ce51
tree71a2a45096a6289206c59aea7e1ccfdfdb32594d
parent7f069cc9fa4b58fe8c8d34e11507a8217cb00a3b
dma: ti: k3-udma: Move DMA channel[0] allocation to probe and add udma_remove()

Currently, the allocation of DMA channel[0] for memcpy is happening
in udma_transfer() for every transfer, which leads to a huge overhead
for each transfer, especially in case of nand page reads. So, move this
allocation to udma_probe(), as a result, the allocation is done once
during probe.

Introduce udma_remove() for the cleanup of allocated channel during
probe.

Signed-off-by: Santhosh Kumar K <s-k6@ti.com>
Signed-off-by: Prasanth Babu Mantena <p-mantena@ti.com>
drivers/dma/ti/k3-udma.c