Skip to content

Commit 7edd7a2

Browse files
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 <[email protected]> Acked-by: Peter Ujfalusi <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
1 parent 81a1f90 commit 7edd7a2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/dma/ti/k3-udma-glue.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1072,8 +1072,8 @@ k3_udma_glue_request_remote_rx_chn(struct device *dev, const char *name,
10721072

10731073
rx_chn->common.chan_dev.class = &k3_udma_glue_devclass;
10741074
rx_chn->common.chan_dev.parent = xudma_get_device(rx_chn->common.udmax);
1075-
dev_set_name(&rx_chn->common.chan_dev, "rchan_remote-0x%04x",
1076-
rx_chn->common.src_thread);
1075+
dev_set_name(&rx_chn->common.chan_dev, "rchan_remote-0x%04x-0x%02x",
1076+
rx_chn->common.src_thread, rx_chn->flow_id_base);
10771077
ret = device_register(&rx_chn->common.chan_dev);
10781078
if (ret) {
10791079
dev_err(dev, "Channel Device registration failed %d\n", ret);

0 commit comments

Comments
 (0)