dma: ti: k3-udma: Use ring_idx to pair k3 nav rings
authorMD Danish Anwar <danishanwar@ti.com>
Tue, 30 Jan 2024 06:18:04 +0000 (11:48 +0530)
committerTom Rini <trini@konsulko.com>
Tue, 6 Feb 2024 21:31:06 +0000 (16:31 -0500)
commit4312a1dfca26a0b5c30ac6890b0078e8d31ff6bf
treec480bd1d8f2bb2137b0998f72416f2dff7cf025a
parent798ad3e6b2ec69a7dc111257270507f95559c5eb
dma: ti: k3-udma: Use ring_idx to pair k3 nav rings

Use ring_idx to pair rings. ring_idx will be same as tx flow_id for all
non-negative flow_ids. For negative flow_ids, ring_idx will be tchan->id
added with bchan_cnt.

Link: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/dma/ti/k3-udma.c?h=v6.8-rc2#n1686
Signed-off-by: MD Danish Anwar <danishanwar@ti.com>
Reviewed-by: Ravi Gunasekaran <r-gunasekaran@ti.com>
drivers/dma/ti/k3-udma.c