summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/stackcollapse-record
diff options
context:
space:
mode:
authorGuangshuo Li <lgs201920130244@gmail.com>2026-09-14 17:15:44 +0800
committerAndi Shyti <andi@zenone.zhora.eu>2026-09-16 07:18:00 +0200
commite0c3e9d76adbe522dd420a766ce42d03ce887c29 (patch)
tree50802d1190176210365e3c9a344c590a54742aec /tools/perf/scripts/python/bin/stackcollapse-record
parentfd73f4a6659897191fa0d40695fe370925dd3780 (diff)
downloadlinux-next-e0c3e9d76adbe522dd420a766ce42d03ce887c29.tar.gz
linux-next-e0c3e9d76adbe522dd420a766ce42d03ce887c29.zip
i2c: imx: disable autosuspend on remove
i2c_imx_probe() enables runtime PM autosuspend with pm_runtime_use_autosuspend(). The probe error path correctly undoes this setting with pm_runtime_dont_use_autosuspend(), but the normal remove path only disables runtime PM. The runtime PM API requires pm_runtime_use_autosuspend() to be undone with pm_runtime_dont_use_autosuspend() at driver exit unless runtime PM was enabled with devm_pm_runtime_enable(). Leaving the autosuspend flag set therefore leaves the runtime PM state incompletely cleaned up after the driver is unbound. Add the missing pm_runtime_dont_use_autosuspend() call to the remove path. This issue was found by manual code inspection. Fixes: 588eb93ea49f ("i2c: imx: add runtime pm support to improve the performance") Signed-off-by: Guangshuo Li <lgs201920130244@gmail.com> Cc: <stable@vger.kernel.org> # v4.5+ Reviewed-by: Frank Li <Frank.Li@nxp.com> Signed-off-by: Andi Shyti <andi.shyti@kernel.org> Link: https://patch.msgid.link/20260914091544.1667137-1-lgs201920130244@gmail.com
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions