dmaengine: stm32-mdma: fix STM32_MDMA_CTBR_TSEL_MASK
authorAmelie Delaunay <amelie.delaunay@foss.st.com>
Mon, 20 Dec 2021 16:58:27 +0000 (17:58 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Jan 2022 09:54:30 +0000 (10:54 +0100)
commit e7f110889a87307fb0fed408a5dee1707796ca04 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/dma/stm32-mdma.c

index 9d473923712adab957e8dcbc200d496b2c786c37..fe36738f2dd7e35f71b46669e6d1bfd761236add 100644 (file)
 #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)                STM32_MDMA_SET(n, \
                                                      STM32_MDMA_CTBR_TSEL_MASK)