Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

iio: imu: inv_icm42600: Drop redundant pm_runtime reinitialization in resume

Remove unnecessary calls to pm_runtime_disable(), pm_runtime_set_active(),
and pm_runtime_enable() from the resume path. These operations are not
required here and can interfere with proper pm_runtime state handling,
especially when resuming from a pm_runtime suspended state.

Fixes: 31c24c1e93c3 ("iio: imu: inv_icm42600: add core of new inv_icm42600 driver")
Signed-off-by: Sean Nyekjaer <sean@geanix.com>
Link: https://patch.msgid.link/20250901-icm42pmreg-v3-2-ef1336246960@geanix.com
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Sean Nyekjaer and committed by
Jonathan Cameron
a95a0b4e 0792c198

-4
-4
drivers/iio/imu/inv_icm42600/inv_icm42600_core.c
··· 917 917 goto out_unlock; 918 918 } 919 919 920 - pm_runtime_disable(dev); 921 - pm_runtime_set_active(dev); 922 - pm_runtime_enable(dev); 923 - 924 920 /* restore sensors state */ 925 921 ret = inv_icm42600_set_pwr_mgmt0(st, st->suspended.gyro, 926 922 st->suspended.accel,