dmaengine: fsl-edma: fix eDMAv4 channel allocation issue
authorFrank Li <Frank.Li@nxp.com>
Tue, 14 Nov 2023 15:48:21 +0000 (10:48 -0500)
committerVinod Koul <vkoul@kernel.org>
Thu, 21 Dec 2023 16:11:06 +0000 (21:41 +0530)
commitdc51b4442dd94ab12c146c1897bbdb40e16d5636
tree7ec38f8d7504e65054e246ec0e07dfad28e3c56d
parentf60dfe0c561a8f1b8e30d3770997cbaa636f57f9
dmaengine: fsl-edma: fix eDMAv4 channel allocation issue

The eDMAv4 channel mux has a limitation where certain requests must use
even channels, while others must use odd numbers.

Add two flags (ARGS_EVEN_CH and ARGS_ODD_CH) to reflect this limitation.
The device tree source (dts) files need to be updated accordingly.

This issue was identified by the following commit:
commit a725990557e7 ("arm64: dts: imx93: Fix the dmas entries order")

Reverting channel orders triggered this problem.

Fixes: 72f5801a4e2b ("dmaengine: fsl-edma: integrate v3 support")
Signed-off-by: Frank Li <Frank.Li@nxp.com>
Link: https://lore.kernel.org/r/20231114154824.3617255-2-Frank.Li@nxp.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/fsl-edma-main.c