]> www.infradead.org Git - users/jedix/linux-maple.git/commit
i2c: stm32: fix the device used for the DMA map
authorClément Le Goffic <clement.legoffic@foss.st.com>
Fri, 4 Jul 2025 08:39:14 +0000 (10:39 +0200)
committerAndi Shyti <andi.shyti@kernel.org>
Thu, 10 Jul 2025 09:58:33 +0000 (11:58 +0200)
commitc870cbbd71fccda71d575f0acd4a8d2b7cd88861
tree0ac862f21b274e3b14594ab55fffbe8c547ae4a8
parent60c016afccac7acb78a43b9c75480887ed3ce48e
i2c: stm32: fix the device used for the DMA map

If the DMA mapping failed, it produced an error log with the wrong
device name:
"stm32-dma3 40400000.dma-controller: rejecting DMA map of vmalloc memory"
Fix this issue by replacing the dev with the I2C dev.

Fixes: bb8822cbbc53 ("i2c: i2c-stm32: Add generic DMA API")
Signed-off-by: Clément Le Goffic <clement.legoffic@foss.st.com>
Cc: <stable@vger.kernel.org> # v4.18+
Acked-by: Alain Volmat <alain.volmat@foss.st.com>
Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
Link: https://lore.kernel.org/r/20250704-i2c-upstream-v4-1-84a095a2c728@foss.st.com
drivers/i2c/busses/i2c-stm32.c
drivers/i2c/busses/i2c-stm32f7.c