Skip to content

Fix STM32 I2C dma operations

Clément Le Goffic dri-devel linux-arm-kernel linux-i2c linux-media lkml 4 versions – In review

Get series with b4
b4 am [email protected] change-id 20250527-i2c-upstream-e5b69501359a

Versions newest first

  1. v4 Latest3 patches 2 repliesIn review
  2. v33 patches 9 repliesSuperseded
  3. v23 patches 2 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v13 patches7 repliesSuperseded

Changes in v4 from the cover letter

- Patch[1]: Remove all chan_dev variable occurrencies
- Patch[2]:
- Refine commit message
- Use the dma_callback to factorize the code
- Patch[3]: Refine commit message
- Link to v3: https://lore.kernel.org/r/[email protected]

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3i2c: stm32: fix the device used for the DMA mapdrivers/i2c/busses/i2c-stm32.c drivers/i2c/busses/i2c-stm32f7.c+5 -70 replies
2/3i2c: stm32f7: unmap DMA mapped bufferdrivers/i2c/busses/i2c-stm32f7.c+7 -130 replies
3/3i2c: stm32f7: support i2c_*_dma_safe_msg_buf APIsdrivers/i2c/busses/i2c-stm32f7.c+21 -110 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchAlain Volmat
1/3A-b
2/3A-b
3/3A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [PATCH v4 0/3] Fix STM32 I2C dma operations

This patch series aims to fix some issues inside the driver's DMA handling.
It also uses newer I2C DMA API.

---
Changes in v4:
- Patch[1]: Remove all chan_dev variable occurrencies
- Patch[2]:
- Refine commit message
- Use the dma_callback to factorize the code
- Patch[3]: Refine commit message
- Link to v3: https://lore.kernel.org/r/[email protected]

Changes in v3:
- Add Alain Volmat's "Acked-by" on patch 1 and 2
- Link to v2: https://lore.kernel.org/r/[email protected]

Changes in v2:
- Fix the dev used in dma_unmap also in the error path of stm32_i2c_prep_dma_xfer
- Add a dma_unmap_single also in the ITs error handler
- Add Alain Volmat's "Acked-by" on patch 3
- Link to v1: https://lore.kernel.org/r/[email protected]

---
Clément Le Goffic (3):
i2c: stm32: fix the device used for the DMA map
i2c: stm32f7: unmap DMA mapped buffer
i2c: stm32f7: support i2c_*_dma_safe_msg_buf APIs

 drivers/i2c/busses/i2c-stm32.c   |  8 +++---
 drivers/i2c/busses/i2c-stm32f7.c | 56 +++++++++++++++++++++-------------------
 2 files changed, 33 insertions(+), 31 deletions(-)

---
base-commit: d0b3b7b22dfa1f4b515fd3a295b3fd958f9e81af
change-id: 20250527-i2c-upstream-e5b69501359a

Best regards,

Signature · 1 line
Clément Le Goffic <[email protected]>