Skip to content

Commit 1d2d852

Browse files
dlechjic23
authored andcommitted
iio: imu: inv_mpu6050: align buffer for timestamp
Align the buffer used with iio_push_to_buffers_with_timestamp() to ensure the s64 timestamp is aligned to 8 bytes. Fixes: 0829edc ("iio: imu: inv_mpu6050: read the full fifo when processing data") Signed-off-by: David Lechner <dlechner@baylibre.com> Link: https://patch.msgid.link/20250417-iio-more-timestamp-alignment-v1-7-eafac1e22318@baylibre.com Cc: <Stable@vger.kernel.org> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
1 parent 4551383 commit 1d2d852

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/iio/imu/inv_mpu6050/inv_mpu_ring.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ irqreturn_t inv_mpu6050_read_fifo(int irq, void *p)
5050
u16 fifo_count;
5151
u32 fifo_period;
5252
s64 timestamp;
53-
u8 data[INV_MPU6050_OUTPUT_DATA_SIZE];
53+
u8 data[INV_MPU6050_OUTPUT_DATA_SIZE] __aligned(8);
5454
size_t i, nb;
5555

5656
mutex_lock(&st->lock);

0 commit comments

Comments
 (0)