[PATCH togreg 0/2] iio: imu: inv_icm42607: fix PM error handling
From: Linmao Li
Date: Tue Aug 04 2026 - 23:55:13 EST
The recently queued ICM-42607 PM support has two error paths that can leave
the PM core's state inconsistent with the device.
Patch 1 propagates sensor shutdown failures from runtime suspend, matching
the behavior of the sibling ICM-42600 driver. Patch 2 ensures that system
resume restores runtime PM management on both of its error paths, so that
a failed resume does not leave runtime PM disabled for good.
The Fixes commit is in iio.git togreg and has been included in
next-20260804. It has not reached mainline.
Based on iio.git togreg at 0efaefce4e95.
Both patches were compile-tested with W=1 and checked with smatch. No
ICM-42607 hardware or fault-injection setup was available.
Linmao Li (2):
iio: imu: inv_icm42607: propagate runtime suspend errors
iio: imu: inv_icm42607: restore runtime PM on system resume errors
.../iio/imu/inv_icm42607/inv_icm42607_core.c | 36 ++++++++++++-------
1 file changed, 24 insertions(+), 12 deletions(-)
base-commit: 0efaefce4e95a3331550329c0078b2fb38b3ff1f
--
2.25.1