mtd: rawnand: stm32_fmc2: use dma_get_slave_caps to get DMA max burst
authorChristophe Kerello <christophe.kerello@foss.st.com>
Mon, 19 Feb 2024 14:05:04 +0000 (15:05 +0100)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Mon, 26 Feb 2024 10:36:24 +0000 (11:36 +0100)
commita9ae475cc60d908dfd232d1c064fc34ec51d3228
treebe0b0738895e18698c82a4559b34f85cb2286f9a
parentc1e04ab409aa0df2f554d7b318d82e8730ac4fa6
mtd: rawnand: stm32_fmc2: use dma_get_slave_caps to get DMA max burst

Use dma_get_slave_caps API to get the max burst size of a DMA channel.

For MP1 SoCs, MDMA is used and the max burst size is 128.
For MP25 SoC, DMA3 is used and the max burst size is 64.

Signed-off-by: Christophe Kerello <christophe.kerello@foss.st.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20240219140505.85794-3-christophe.kerello@foss.st.com
drivers/mtd/nand/raw/stm32_fmc2_nand.c