For reasons currently unknown the asel setting is only needed and
required on am625. It doesn't work on AM62l though.

Signed-off-by: Sascha Hauer <s.ha...@pengutronix.de>
---
 drivers/dma/ti/k3-udma-common.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/dma/ti/k3-udma-common.c b/drivers/dma/ti/k3-udma-common.c
index 
8661d148aa1324828a168edb5caa496bb7e6da45..49e2396e9b52145fdf325c2e07efe0869f844a1d
 100644
--- a/drivers/dma/ti/k3-udma-common.c
+++ b/drivers/dma/ti/k3-udma-common.c
@@ -1102,7 +1102,7 @@ int udma_of_xlate(struct dma *dma, struct of_phandle_args 
*args)
            ep_config->mapped_channel_id >= 0) {
                ucc->mapped_channel_id = ep_config->mapped_channel_id;
                ucc->default_flow_id = ep_config->default_flow_id;
-               if (args->args_count == 2)
+               if (of_machine_is_compatible("ti,am625") && args->args_count == 
2)
                        ucc->asel = args->args[1];
        } else {
                ucc->mapped_channel_id = -1;

-- 
2.39.5


Reply via email to