summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorTarang Raval <tarang.raval@siliconsignals.io>2025-03-29 11:13:28 +0530
committerHans Verkuil <hverkuil@xs4all.nl>2025-04-25 10:15:37 +0200
commitb493cd3c03641f9bbaa9787e43ca92163cb50051 (patch)
tree927a1415f66047797268c7eaf735f9647667f994 /tools/perf/scripts/python
parenta6dde677b93795a04f43f90427723bb4c2a50e5e (diff)
media: i2c: imx334: Fix runtime PM handling in remove function
pm_runtime_suspended() only checks the current runtime PM status and does not modify it, making it ineffective in this context. This could result in improper power management if the device remains active when removed. This patch fixes the issue by introducing a check with pm_runtime_status_suspended() to determine if the device is already suspended. If it is not, it calls imx334_power_off() to power down the device and then uses pm_runtime_set_suspended() to correctly update the runtime PM status to suspended. Signed-off-by: Tarang Raval <tarang.raval@siliconsignals.io> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions