dmaengine: ti: k3-udma-glue: Update name for remote RX channel device
authorSiddharth Vadapalli <s-vadapalli@ti.com>
Wed, 24 Jan 2024 12:43:17 +0000 (18:13 +0530)
committerVinod Koul <vkoul@kernel.org>
Tue, 30 Jan 2024 16:43:51 +0000 (22:13 +0530)
commit7edd7a2fd345b10e80ee854aaacc6452d6f46a7e
tree4d72aaf8a484ff74876507bb45b19868932ebd4f
parent81a1f90f20af71728f900f245aa69e9425fdef84
dmaengine: ti: k3-udma-glue: Update name for remote RX channel device

A single RX Channel can have multiple flows. It is possible that a
single device requests multiple flows on the same RX Channel. In such
cases, the existing implementation of naming the device on the basis of
the RX Channel can result in duplicate names. The existing implementation
only uses the RX Channel source thread when naming, which implies duplicate
names when different flows are being requested on the same RX Channel.

In order to avoid duplicate names, include the RX flow as well in the name.

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