diff options
| author | 2026-09-18 21:20:28 +0900 | |
|---|---|---|
| committer | 2026-09-28 17:07:37 +0100 | |
| commit | 465bdce79a9fe140a4b46b95f6bdfd880d197148 (patch) | |
| tree | b72672fe4adf558f7c83705be14e92eba158f0e3 /scripts/Makefile.thinlto | |
| parent | iio: pressure: dps310: check the lock markings with context analysis (diff) | |
iio: dac: ad5758: Fix alignment for DMA safety
ad5758_spi_reg_read() reads into st->d32[2] with spi_sync_transfer(),
but d32 is not marked __aligned(IIO_DMA_MINALIGN), so it can share a
cacheline with the fields before it. When DMA is not cache coherent,
the cache invalidation after the read can discard CPU writes to those
fields.
Mark d32 __aligned(IIO_DMA_MINALIGN). It is the last member of the
struct, so nothing comes after it.
Fixes: 28d1a7ac2a0d ("iio: dac: Add AD5758 support")
Signed-off-by: Arka Mondal <arka@arkamondal.net>
Reviewed-by: Nuno Sá <nuno.sa@analog.com>
Signed-off-by: Jonathan Cameron <jonathan.cameron@oss.qualcomm.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
