diff options
author | Frank Li <[email protected]> | 2023-08-23 14:26:35 -0400 |
---|---|---|
committer | Vinod Koul <[email protected]> | 2023-09-28 16:58:57 +0530 |
commit | 3f4b82167a3b1f4ddb33d890f758a042ef4ceef1 (patch) | |
tree | 6cda9d13183e79dd4d12539d895365c079d8b7ef /lib/test_fortify/write_overflow-strncpy-src.c | |
parent | 54a5aff6f98b69e73cba40470f103a72bd436b20 (diff) |
dmaengine: fsl-edma: fix edma4 channel enable failure on second attempt
When attempting to start DMA for the second time using
fsl_edma3_enable_request(), channel never start.
CHn_MUX must have a unique value when selecting a peripheral slot in the
channel mux configuration. The only value that may overlap is source 0.
If there is an attempt to write a mux configuration value that is already
consumed by another channel, a mux configuration of 0 (SRC = 0) will be
written.
Check CHn_MUX before writing in fsl_edma3_enable_request().
Fixes: 72f5801a4e2b ("dmaengine: fsl-edma: integrate v3 support")
Signed-off-by: Frank Li <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Vinod Koul <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions