Re: [PATCH v2] counter: ti-eqep: balance pm_runtime on devm_clk_get_enabled() failure

From: William Breathitt Gray

Date: Wed May 27 2026 - 03:15:34 EST



On Mon, 25 May 2026 20:21:37 +0500, Stepan Ionichev wrote:
> ti_eqep_probe() calls pm_runtime_enable() and pm_runtime_get_sync()
> before devm_clk_get_enabled(). If the clk call fails, the function
> returns directly via dev_err_probe(), leaving runtime PM enabled
> and the usage counter incremented.
>
> Route the clk error through the same err_pm cleanup as counter_add()
> so the runtime PM state is unwound on every failure path.
>
> [...]

Applied, thanks!

[1/1] counter: ti-eqep: balance pm_runtime on devm_clk_get_enabled() failure
commit: abeabb5fc6a7d4c347d494dfe5bc9449c4535226

Best regards,
--
William Breathitt Gray <wbg@xxxxxxxxxx>