diff options
| author | Linmao Li <lilinmao@kylinos.cn> | 2026-08-24 11:55:31 +0800 |
|---|---|---|
| committer | Jonathan Cameron <jonathan.cameron@oss.qualcomm.com> | 2026-09-30 18:59:55 +0100 |
| commit | 87775fff21b14cd37604530b1783f0a9db8f95a7 (patch) | |
| tree | a68fc54341467041b2109446740dfdabcbdd17a2 /tools/lib/python/kdoc | |
| parent | c1774272c76e92fc3df10a8fedfc033716e55d1b (diff) | |
| download | linux-next-87775fff21b14cd37604530b1783f0a9db8f95a7.tar.gz linux-next-87775fff21b14cd37604530b1783f0a9db8f95a7.zip | |
iio: imu: inv_icm42607: restore runtime PM on system resume errors
pm_runtime_force_suspend() leaves runtime PM disabled after it succeeds and
expects pm_runtime_force_resume() to restore runtime PM management during
system resume.
The resume callback returns early if enabling the vddio regulator or
synchronizing the register cache fails, skipping the matching
pm_runtime_force_resume() call. Runtime PM consequently remains disabled
after the system has resumed, so runtime autosuspend can no longer turn off
sensors enabled afterward.
Call pm_runtime_force_resume() on both error paths. Keep the first error as
the return value and report a runtime PM restore failure separately.
Fixes: 3007c1530f96 ("iio: imu: inv_icm42607: Add PM support for icm42607")
Signed-off-by: Linmao Li <lilinmao@kylinos.cn>
Tested-by: Kanak Shilledar <kanak.shilledar@axis.com>
Tested-by: Chris Morgan <macromorgan@hotmail.com>
Signed-off-by: Jonathan Cameron <jonathan.cameron@oss.qualcomm.com>
Diffstat (limited to 'tools/lib/python/kdoc')
0 files changed, 0 insertions, 0 deletions
