Re: [PATCH v3 1/3] i2c: stm32: fix the device used for the DMA map

From: Clement LE GOFFIC
Date: Thu Jul 03 2025 - 03:24:00 EST


Hi Andy,

On 7/2/25 18:57, Andi Shyti wrote:
Hi Clement,

...

@@ -118,7 +118,7 @@ int stm32_i2c_prep_dma_xfer(struct device *dev, struct stm32_i2c_dma *dma,
dma->dma_len = len;
chan_dev = dma->chan_using->device->dev;
- dma->dma_buf = dma_map_single(chan_dev, buf, dma->dma_len,
+ dma->dma_buf = dma_map_single(dev, buf, dma->dma_len,
dma->dma_data_dir);
if (dma_mapping_error(chan_dev, dma->dma_buf)) {
^^^^^^^^

this one should be "dev" too, which renders the chan_dev variable
unused.

Oh yes will send a v4

Best regards,
Clément