dma: ti: k3-udma: Avoid Memory leak issues during dma memcpy
authorPrasanth Babu Mantena <p-mantena@ti.com>
Thu, 20 Feb 2025 13:18:27 +0000 (18:48 +0530)
committerTom Rini <trini@konsulko.com>
Fri, 28 Feb 2025 14:38:48 +0000 (08:38 -0600)
commitc6d6dbbe72c557359e2052823c14eee398601397
tree847201db3fb7359f2d83e2e30f325542fc653594
parentc634436038072270811008b2b698ddaec8be6967
dma: ti: k3-udma: Avoid Memory leak issues during dma memcpy

During dma memcpy, bcdma descriptor gets allocated for each
transaction and not freed after completion of that transaction.
So, avoid the memory allocation for every transaction.

Add one descriptor per dma device and allocate it once in
resource setup. This descriptor can now be used for all
dma memcpy transactions optimally.

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