summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorArka Mondal <arka@arkamondal.net>2026-09-18 21:20:28 +0900
committerJonathan Cameron <jonathan.cameron@oss.qualcomm.com>2026-09-28 17:07:37 +0100
commit465bdce79a9fe140a4b46b95f6bdfd880d197148 (patch)
treeb72672fe4adf558f7c83705be14e92eba158f0e3 /tools/perf/scripts/python
parent89bda80f6623abb795370e346e8f0a05382a6187 (diff)
downloadlinux-next-465bdce79a9fe140a4b46b95f6bdfd880d197148.tar.gz
linux-next-465bdce79a9fe140a4b46b95f6bdfd880d197148.zip
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 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions