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

2025-07-03 Thread Clement LE GOFFIC
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_l

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

2025-07-02 Thread Andi Shyti
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_si

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

2025-06-30 Thread Pierre Yves MORDRET
Hi Clement, On 6/30/25 14:55, Clément Le Goffic wrote: > If the DMA mapping failed, it produced an error log with the wrong > device name: > "stm32-dma3 4040.dma-controller: rejecting DMA map of vmalloc memory" > Fix this issue by replacing the dev with the I2C dev. > > Fixes: bb8822cbbc53 ("

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

2025-06-30 Thread Clément Le Goffic
If the DMA mapping failed, it produced an error log with the wrong device name: "stm32-dma3 4040.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") Acked-by: Alain Volmat Signed