Re: [PATCH v4 05/13] iio: dac: ad5686: fix overlapping DMA buffers in I2C read
From: Andy Shevchenko
Date: Wed Apr 29 2026 - 09:50:44 EST
On Wed, Apr 29, 2026 at 02:12:32PM +0100, Rodrigo Alencar wrote:
> On 26/04/29 02:07PM, Rodrigo Alencar via B4 Relay wrote:
> >
> > The TX and RX buffers in ad5686_i2c_read() both reference data[0], causing
> > byte d8[1] to be shared between the TX buffer and the RX buffer. I2C
> > controller drivers that map all message buffers for DMA before initiating
> > the hardware transaction will map overlapping memory ranges with
> > conflicting DMA directions (DMA_TO_DEVICE and DMA_FROM_DEVICE). This issue
> > was reported by sashiko.
>
> Do we need a proper reported-by tag here?
I asked Roman (in another email thread) about dedicated email for that.
Let's see what he is going to answer.
--
With Best Regards,
Andy Shevchenko