Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Amelie Delaunay and committed by
Vinod Koul
e7f11088 2fe6777b

+1 -1
+1 -1
drivers/dma/stm32-mdma.c
··· 157 157 #define STM32_MDMA_CTBR(x) (0x68 + 0x40 * (x)) 158 158 #define STM32_MDMA_CTBR_DBUS BIT(17) 159 159 #define STM32_MDMA_CTBR_SBUS BIT(16) 160 - #define STM32_MDMA_CTBR_TSEL_MASK GENMASK(7, 0) 160 + #define STM32_MDMA_CTBR_TSEL_MASK GENMASK(5, 0) 161 161 #define STM32_MDMA_CTBR_TSEL(n) FIELD_PREP(STM32_MDMA_CTBR_TSEL_MASK, (n)) 162 162 163 163 /* MDMA Channel x mask address register */