Skip to content

Commit e7f1108

Browse files
ADESTMvinodkoul
authored andcommitted
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: a4ffb13 ("dmaengine: Add STM32 MDMA driver") Signed-off-by: Amelie Delaunay <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
1 parent 2fe6777 commit e7f1108

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/dma/stm32-mdma.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@
157157
#define STM32_MDMA_CTBR(x) (0x68 + 0x40 * (x))
158158
#define STM32_MDMA_CTBR_DBUS BIT(17)
159159
#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)
161161
#define STM32_MDMA_CTBR_TSEL(n) FIELD_PREP(STM32_MDMA_CTBR_TSEL_MASK, (n))
162162

163163
/* MDMA Channel x mask address register */

0 commit comments

Comments
 (0)