Re: [PATCH v2 1/4] media: qcom: camss: Add PM clock support and integrate with runtime PM

From: Bryan O'Donoghue

Date: Tue Jul 21 2026 - 19:59:05 EST


On 21/07/2026 14:21, Loic Poulain wrote:
Add optional PM clock support to the CAMSS driver using the PM clock
framework. This allows CAMSS clocks to be registered once and
automatically managed during runtime suspend and resume.

This is especially useful for global CAMSS clocks that are shared across
multiple CAMSS subblocks.

This avoids the need for each subblock to reference and manage the
shared clocks individually. A typical example is the set of clocks in
the top_group, which may be used by CSID, PHY, CCI, and other CAMSS
blocks.

Introduce a small PM clock descriptor table in the CAMSS resources
structure to describe clocks and their optional rates. Initialize
these clocks at probe time and delegate clock ownership to the PM
core.

Hook PM clock handling into the runtime PM callbacks to ensure clocks
are properly suspended and resumed alongside power domains and ICC
paths.

Signed-off-by: Loic Poulain <loic.poulain@xxxxxxxxxxxxxxxx>


Reviewed-by: Bryan O'Donoghue <bryan.odonoghue@xxxxxxxxxx>