summaryrefslogtreecommitdiff
path: root/tools/lib/python
diff options
context:
space:
mode:
authorRuoyu Wang <ruoyuw560@gmail.com>2026-06-09 08:26:47 +0300
committerMark Brown <broonie@kernel.org>2026-06-10 02:06:47 +0300
commit606c0826bd90384a54571c0c5475ca41f50164ea (patch)
tree1066fc3747c0bf4313101537769ac4e9789df58a /tools/lib/python
parentfc82dda1dcc61a4e48c1511d0a3beefc9dc77312 (diff)
downloadlinux-606c0826bd90384a54571c0c5475ca41f50164ea.tar.xz
spi: meson-spifc: fix runtime PM leak on remove
pm_runtime_get_sync() increments the runtime PM usage counter even when it returns an error. meson_spifc_remove() uses it to resume the controller before disabling runtime PM, but never drops the usage counter again. Balance the get with pm_runtime_put_noidle() after disabling runtime PM, matching the teardown pattern used by other SPI controller drivers. Found by static analysis. I do not have hardware to test this. Fixes: c3e4bc5434d2 ("spi: meson: Add support for Amlogic Meson SPIFC") Signed-off-by: Ruoyu Wang <ruoyuw560@gmail.com> Link: https://patch.msgid.link/20260609052647.5-1-ruoyuw560@gmail.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions