Re: [PATCH v3 1/4] media: qcom: camss: Add PM clock support and integrate with runtime PM
From: Loic Poulain
Date: Fri Jul 31 2026 - 04:37:36 EST
Hi Bryan,
On Thu, Jul 30, 2026 at 9:34 PM Bryan O'Donoghue
<bryan.odonoghue@xxxxxxxxxx> wrote:
>
> On 30/07/2026 10:24, Loic Poulain wrote:
> > + ret = camss_init_pm_clks(camss);
> > + if (ret)
> > + goto err_v4l2_device_unregister;
> > +
>
> I don't think this makes sense if !CONFIG_PM_CLK
>
> ->
>
> I don't think the read routine in patch #4 should happen if
> !CONFIG_PM_CLK either.
These clocks are required by the other subdevices/blocks regardless,
so they need to remain enabled. The simplest fix is therefore to
handle both cases in the initialization helper, use the PM clock
framework when CONFIG_PM_CLK is enabled, and fall back to the regular
clock framework otherwise (which should only occur in the
unlikely/compile-test event that CONFIG_PM_CLK is disabled).
Regards,
Loic