Re: [PATCH 2/2] clk: qcom: clk-rpmh: Make all VRMs optional by default

From: Konrad Dybcio

Date: Mon Apr 13 2026 - 04:50:19 EST


On 4/12/26 5:30 PM, Alexander Koskovich wrote:
> Some VRMs aren't present on all boards, so mark them as optional. This
> prevents probe failures on boards where not all VRMs are present.
>
> This mirrors the downstream approach for this issue.
>
> Signed-off-by: Alexander Koskovich <akoskovich@xxxxx>
> ---

[...]

> @@ -976,6 +982,11 @@ static int clk_rpmh_probe(struct platform_device *pdev)
> rpmh_clk = to_clk_rpmh(hw_clks[i]);
> res_addr = cmd_db_read_addr(rpmh_clk->res_name);
> if (!res_addr) {
> + hw_clks[i] = NULL;
> +
> + if (rpmh_clk->optional)
> + continue;

if (rpmh_clk->offset == CLK_RPMH_VRM_EN_OFFSET)?

That would let you drop the rest of the patch.

This also needs some additional background.. I would assume this comes from
a slightly different HW (PMIC) configuration

Could you please do `grep ^ /sys/kernel/debug/qcom_socinfo/*`, (perhaps
censoring your serial number)?

Konrad