diff options
author | Amelie Delaunay <amelie.delaunay@foss.st.com> | 2021-12-20 17:58:27 +0100 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2022-01-03 12:30:09 +0100 |
commit | e7f110889a87307fb0fed408a5dee1707796ca04 (patch) | |
tree | 64dc870d3701cd7407b93cc134cc66f983f850da /drivers/dma/stm32-mdma.c | |
parent | dmaengine: rcar-dmac: Add support for R-Car S4-8 (diff) | |
download | linux-e7f110889a87307fb0fed408a5dee1707796ca04.tar.xz linux-e7f110889a87307fb0fed408a5dee1707796ca04.zip |
dmaengine: stm32-mdma: fix STM32_MDMA_CTBR_TSEL_MASK
This patch fixes STM32_MDMA_CTBR_TSEL_MASK, which is [5:0], not [7:0].
Fixes: a4ffb13c8946 ("dmaengine: Add STM32 MDMA driver")
Signed-off-by: Amelie Delaunay <amelie.delaunay@foss.st.com>
Link: https://lore.kernel.org/r/20211220165827.1238097-1-amelie.delaunay@foss.st.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/dma/stm32-mdma.c')
-rw-r--r-- | drivers/dma/stm32-mdma.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dma/stm32-mdma.c b/drivers/dma/stm32-mdma.c index 76cf2e333e63..6f57ff0e7b37 100644 --- a/drivers/dma/stm32-mdma.c +++ b/drivers/dma/stm32-mdma.c @@ -157,7 +157,7 @@ #define STM32_MDMA_CTBR(x) (0x68 + 0x40 * (x)) #define STM32_MDMA_CTBR_DBUS BIT(17) #define STM32_MDMA_CTBR_SBUS BIT(16) -#define STM32_MDMA_CTBR_TSEL_MASK GENMASK(7, 0) +#define STM32_MDMA_CTBR_TSEL_MASK GENMASK(5, 0) #define STM32_MDMA_CTBR_TSEL(n) FIELD_PREP(STM32_MDMA_CTBR_TSEL_MASK, (n)) /* MDMA Channel x mask address register */ |