mirror of
https://github.com/torvalds/linux.git
synced 2026-05-22 22:22:08 +02:00
iio: accel: bmi088: Fix alignment for DMA safety
____cacheline_aligned is insufficient guarantee for non-coherent DMA. Switch to the updated IIO_DMA_MINALIGN definition. Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Acked-by: Nuno Sá <nuno.sa@analog.com> Link: https://lore.kernel.org/r/20220508175712.647246-7-jic23@kernel.org
This commit is contained in:
parent
38e71240e2
commit
a794b34083
|
|
@ -128,7 +128,7 @@ struct bmi088_accel_chip_info {
|
|||
struct bmi088_accel_data {
|
||||
struct regmap *regmap;
|
||||
const struct bmi088_accel_chip_info *chip_info;
|
||||
u8 buffer[2] ____cacheline_aligned; /* shared DMA safe buffer */
|
||||
u8 buffer[2] __aligned(IIO_DMA_MINALIGN); /* shared DMA safe buffer */
|
||||
};
|
||||
|
||||
static const struct regmap_range bmi088_volatile_ranges[] = {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user