dma: ti: k3-udma: Fix rflow reservation for PKTDMA
authorVignesh Raghavendra <vigneshr@ti.com>
Thu, 23 Dec 2021 13:57:30 +0000 (19:27 +0530)
committerTom Rini <trini@konsulko.com>
Sat, 15 Jan 2022 15:38:26 +0000 (10:38 -0500)
commit4af5e5f6fdf53c3d1827a72daf886350b2e29e1c
tree100ebf1cf1338362dc4cc718d37423ad1c29d581
parent584216315dee17d3a104379ff087ff57d2bbda48
dma: ti: k3-udma: Fix rflow reservation for PKTDMA

Driver has a bug in that it uses rflow_in_use bitmap when setting up free rflow range
from TISCI but use rflow_map for reservation in __udma_reserve_rflow()

Fix this by dropping rflow_in_use bitmap array and use rflow_map for
PKTDMA. BCDMA does not need rflow_in_use either.

This fixes CPSW3g not able to get DMA channels at R5 SPL on AM64x

Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
drivers/dma/ti/k3-udma.c