Re: [PATCH v2 5/7] clk: qcom: camcc-x1p42100: Add support for camera clock controller

From: Bryan O'Donoghue

Date: Wed Mar 04 2026 - 21:20:20 EST


On 05/03/2026 00:33, Dmitry Baryshkov wrote:
I've cross-checked this against X1E80100 driver. The main changes are a
drop of IFE_1, SPE_0, and two PLLs. However it also:
- uses hw_clk_ctrl for several clocks
- uses rcg2_shared_ops instead of rcg2_ops for several clocks
- uses hwcg_reg and BRANCH_HALT_VOTED for cam_cc_camnoc_axi_nrt_clk
- uses HW_CTRL_TRIGGER for cam_cc_bps_gdsc and cam_cc_ipe_0_gdsc
- uses non-AO clock for cam_cc_xo_clk_src

Are all these changes expected? Are any of them also applicable to X1E?

At this point, I'm torn between suggesting the merge of this driver into
X1E driver and ack'ing the current form.

We can test the diff but, I'm not sure that will really answer the question if it is the right-thing-to-do.

OTOH if it ain't broke, don't fix it.

Reverse the question - is there any reason to have this driver at all ? Can the x1e CAMCC be used as-is ?

If not, then we can accept this patch and potentially look at merging the two drivers later on.

I assume the code submitted has a purpose though i.e. its not possible to just use Hamoa and Purwa interchangably.

A few community members showed me CAMSS working on Purwa last year in Amsterdam with the x1e code - one error if I recall was a clock splat.

So superficially it adds up to me that its not a 1:1 thing with these two parts.

---
bod