]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
iio: imu: inv_icm42600: Avoid configuring if already pm_runtime suspended
authorSean Nyekjaer <sean@geanix.com>
Mon, 1 Sep 2025 07:49:15 +0000 (09:49 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Wed, 10 Sep 2025 18:47:05 +0000 (19:47 +0100)
commit466f7a2fef2a4e426f809f79845a1ec1aeb558f4
treefd396dc72d1b587522fadac693365e7bcf704bf1
parenta95a0b4e471a6d8860f40c6ac8f1cad9dde3189a
iio: imu: inv_icm42600: Avoid configuring if already pm_runtime suspended

Do as in suspend, skip resume configuration steps if the device is already
pm_runtime suspended. This avoids reconfiguring a device that is already
in the correct low-power state and ensures that pm_runtime handles the
power state transitions properly.

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-3-ef1336246960@geanix.com
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/imu/inv_icm42600/inv_icm42600_core.c