diff options
| author | Tharit Tangkijwanichakul <tharitt97@gmail.com> | 2026-07-29 06:04:39 +0000 |
|---|---|---|
| committer | Hans Verkuil <hverkuil+cisco@kernel.org> | 2026-10-04 17:32:43 +0200 |
| commit | 556ab0b2741d653455637ffdd453d65c0439914a (patch) | |
| tree | 9c1a24e043e498899cbc03216d78d71700a8c9b8 /rust/kernel/alloc | |
| parent | 2b685dba4226792933f45b1cbf8991e89ccd21ce (diff) | |
media: hantro: release runtime resources when device_run fails
device_run() acquires a runtime PM reference and enables the VPU clocks
before invoking the codec-specific run callback.
If clk_bulk_enable() fails, the runtime PM reference is left held. If
the codec-specific run callback fails, both the enabled clocks and the
runtime PM reference are left held.
Make the clocks part of the device's runtime PM state by enabling them
from the runtime-resume callback and disabling them from the
runtime-suspend callback.
Fixes: 775fec69008d ("media: add Rockchip VPU JPEG encoder driver")
Cc: stable@vger.kernel.org
Signed-off-by: Tharit Tangkijwanichakul <tharitt97@gmail.com>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
Diffstat (limited to 'rust/kernel/alloc')
0 files changed, 0 insertions, 0 deletions
