]> www.infradead.org Git - users/jedix/linux-maple.git/commit
iio: imu: inv_mpu6050: fix interrupt status read for old buggy chips
authorJean-Baptiste Maneyrol <jean-baptiste.maneyrol@tdk.com>
Wed, 14 Aug 2024 14:37:35 +0000 (14:37 +0000)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 17 Aug 2024 14:31:41 +0000 (15:31 +0100)
commit0a3b517c8089aa4cf339f41460d542c681409386
treeecaed17ed5d65741c7c0318fff24a0eb7ead28c4
parentf242967f4d1c024ac42bb47ea50b6360b4cb4556
iio: imu: inv_mpu6050: fix interrupt status read for old buggy chips

Interrupt status read seems to be broken on some old MPU-6050 like
chips. Fix by reverting to previous driver behavior bypassing interrupt
status read. This is working because these chips are not supporting
WoM and data ready is the only interrupt source.

Fixes: 5537f653d9be ("iio: imu: inv_mpu6050: add new interrupt handler for WoM events")
Cc: stable@vger.kernel.org
Signed-off-by: Jean-Baptiste Maneyrol <jean-baptiste.maneyrol@tdk.com>
Tested-by: Svyatoslav Ryhel <clamor95@gmail.com> # LG P895
Tested-by: Andreas Westman Dorcsak <hedmoo@yahoo.com> # LG P880
Link: https://patch.msgid.link/20240814143735.327302-1-inv.git-commit@tdk.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/imu/inv_mpu6050/inv_mpu_trigger.c