[PATCH v2] media: rkvdec: Do not keep the clocks enabled from probe

Nicolas Dufresne nicolas.dufresne at collabora.com
Mon Nov 30 10:29:38 PST 2026


On Fri, 30 Oct 2026 18:02:04 +0000, Igor Velkov wrote:
> Since commit 6a846f7d72c7 ("media: rkvdec: Enable all clocks without
> naming them") the clocks are fetched with devm_clk_bulk_get_all_enabled(),
> which keeps them enabled from probe until unbind. rkvdec_runtime_suspend()
> disables them on top of that, so their enable count never drops to zero
> and the clock gates stay open while the decoder is idle.
> 
> On RK3399 this also breaks restore from hibernation when the boot kernel
> has not enabled these clocks, for example with rkvdec built as a module:
> the gates are closed when the restored kernel takes over, while it still
> counts the clocks as enabled. Powering on the vdu power domain then finds
> the count at 1 and leaves the gates closed, and the first QoS register
> write of the domain never returns.
> 
> [...]

Applied, thanks!

[1/1] media: rkvdec: Do not keep the clocks enabled from probe
      commit: 3c51e909f29f03ef409e2a914f75da87938062ab

Best regards,
-- 
Nicolas Dufresne <nicolas.dufresne at collabora.com>



More information about the Linux-rockchip mailing list