summaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorXulin Sun <xulin.sun@windriver.com>2025-12-04 17:41:51 +0800
committerHans Verkuil <hverkuil+cisco@kernel.org>2026-01-05 15:56:31 +0100
commit9cf4452e824c1e2d41c9c0b13cc8a32a0a7dec38 (patch)
tree19d112c684176a8b19a1af947ec04f6bdd7a98d0 /tools/perf/scripts/python/stackcollapse.py
parent5da0380de41439ed64ed9a5218850db38544e315 (diff)
downloadlinux-9cf4452e824c1e2d41c9c0b13cc8a32a0a7dec38.tar.gz
linux-9cf4452e824c1e2d41c9c0b13cc8a32a0a7dec38.zip
media: chips-media: wave5: Fix PM runtime usage count underflow
Replace pm_runtime_put_sync() with pm_runtime_dont_use_autosuspend() in the remove path to properly pair with pm_runtime_use_autosuspend() from probe. This allows pm_runtime_disable() to handle reference count cleanup correctly regardless of current suspend state. The driver calls pm_runtime_put_sync() unconditionally in remove, but the device may already be suspended due to autosuspend configured in probe. When autosuspend has already suspended the device, the usage count is 0, and pm_runtime_put_sync() decrements it to -1. This causes the following warning on module unload: ------------[ cut here ]------------ WARNING: CPU: 1 PID: 963 at kernel/kthread.c:1430 kthread_destroy_worker+0x84/0x98 ... vdec 30210000.video-codec: Runtime PM usage count underflow! Fixes: 9707a6254a8a ("media: chips-media: wave5: Add the v4l2 layer") Cc: stable@vger.kernel.org Signed-off-by: Xulin Sun <xulin.sun@windriver.com> Reviewed-by: Nicolas Dufresne <nicolas.dufresne@collabora.com> Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.com> Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions