]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
iio: imu: inv_mpu6050: align buffer for timestamp
authorDavid Lechner <dlechner@baylibre.com>
Sat, 6 Sep 2025 02:14:06 +0000 (22:14 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 9 Sep 2025 16:56:30 +0000 (18:56 +0200)
commitfb6a7c1da2072115fe589a737f704b9d0ebfa43f
tree6548824d9e3fb13d99b422c83f40ae8d81efde25
parent977849e8acd2466ac3cb49e04a3ecc73837f6b90
iio: imu: inv_mpu6050: align buffer for timestamp

[ Upstream commit 1d2d8524eaffc4d9a116213520d2c650e07c9cc6 ]

Align the buffer used with iio_push_to_buffers_with_timestamp() to
ensure the s64 timestamp is aligned to 8 bytes.

Fixes: 0829edc43e0a ("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>
[ Adjust context ]
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/iio/imu/inv_mpu6050/inv_mpu_ring.c