linux/drivers/iio/imu/inv_mpu6050
Jonathan Cameron 6b0cc5dce0 iio:imu:inv_mpu6050 Fix dma and ts alignment and data leak issues.
This case is a bit different to the rest of the series.  The driver
was doing a regmap_bulk_read into a buffer that wasn't dma safe
as it was on the stack with no guarantee of it being in a cacheline
on it's own.   Fixing that also dealt with the data leak and
alignment issues that Lars-Peter pointed out.

Also removed some unaligned handling as we are now aligned.

Fixes tag is for the dma safe buffer issue. Potentially we would
need to backport timestamp alignment futher but that is a totally
different patch.

Fixes: fd64df16f4 ("iio: imu: inv_mpu6050: Add SPI support for MPU6000")
Reported-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Reviewed-by: Jean-Baptiste Maneyrol <jmaneyrol@invensense.com>
Cc: <Stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20200722155103.979802-18-jic23@kernel.org
2020-09-21 20:01:51 +01:00
..
inv_mpu_acpi.c iio: imu: inv_mpu6050: Drop double check for ACPI companion device 2020-06-14 11:49:32 +01:00
inv_mpu_aux.c iio: imu: inv_mpu6050: helpers for using i2c master on auxiliary bus 2019-10-05 12:06:16 +01:00
inv_mpu_aux.h iio: imu: inv_mpu6050: helpers for using i2c master on auxiliary bus 2019-10-05 12:06:16 +01:00
inv_mpu_core.c iio: imu: inv_mpu6050: Simplify with dev_err_probe() 2020-09-03 19:40:50 +01:00
inv_mpu_i2c.c iio: imu: inv_mpu6050_i2c: Use vsprintf extension %pe for symbolic error name 2020-04-19 16:56:17 +01:00
inv_mpu_iio.h iio:imu:inv_mpu6050 Fix dma and ts alignment and data leak issues. 2020-09-21 20:01:51 +01:00
inv_mpu_magn.c iio: imu: inv_mpu6050: fix data polling interface 2020-03-08 17:28:38 +00:00
inv_mpu_magn.h iio: imu: inv_mpu6050: fix data polling interface 2020-03-08 17:28:38 +00:00
inv_mpu_ring.c iio:imu:inv_mpu6050 Fix dma and ts alignment and data leak issues. 2020-09-21 20:01:51 +01:00
inv_mpu_spi.c iio: imu: inv_mpu6050_spi: Use vsprintf extension %pe for symbolic error name 2020-04-19 16:56:18 +01:00
inv_mpu_trigger.c iio: imu: inv_mpu6050: use runtime pm with autosuspend 2020-03-08 17:28:39 +00:00
Kconfig iio: imu: inv_mpu6050: add support of ICM20690 2020-02-14 15:06:25 +00:00
Makefile iio: imu: inv_mpu6050: add MPU925x magnetometer support 2019-10-05 12:14:20 +01:00