From: Jonathan Cameron Date: Sun, 8 May 2022 17:55:43 +0000 (+0100) Subject: iio: accel: adxl355: Fix alignment for DMA safety X-Git-Tag: v6.1-rc5~726^2~26^2~150 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=46403dcf3a7cbd24b86f809fd79962f4d6b137c5;p=platform%2Fkernel%2Flinux-starfive.git iio: accel: adxl355: Fix alignment for DMA safety ____cacheline_aligned is insufficient guarantee for non-coherent DMA. Switch to the updated IIO_DMA_MINALIGN definition. Fixes: 327a0eaf19d53 ("iio: accel: adxl355: Add triggered buffer support") Signed-off-by: Jonathan Cameron Cc: Puranjay Mohan Acked-by: Nuno Sá Link: https://lore.kernel.org/r/20220508175712.647246-4-jic23@kernel.org --- diff --git a/drivers/iio/accel/adxl355_core.c b/drivers/iio/accel/adxl355_core.c index 7561399..4bc648e 100644 --- a/drivers/iio/accel/adxl355_core.c +++ b/drivers/iio/accel/adxl355_core.c @@ -177,7 +177,7 @@ struct adxl355_data { u8 buf[14]; s64 ts; } buffer; - } ____cacheline_aligned; + } __aligned(IIO_DMA_MINALIGN); }; static int adxl355_set_op_mode(struct adxl355_data *data,