From: sashiko-bot@kernel.org
To: "Jagadeesh Kona" <jagadeesh.kona@oss.qualcomm.com>
Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org,
linux-clk@vger.kernel.org
Subject: Re: [PATCH v3 2/2] clk: qcom: Add support for camera clock controller on Maili
Date: Mon, 21 Sep 2026 16:50:31 +0000 [thread overview]
Message-ID: <20260921165032.11B1E1F000FF@smtp.kernel.org> (raw)
In-Reply-To: <20260921-maili_camcc-v3-2-2f8d739ac2d4@oss.qualcomm.com>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] clk: qcom: missing frequency table update for cam_cc_cci_1_clk_src on Maili
--
commit 9204e9b27b38229aa09fff0dc17f81cd19db9fc2
Author: Jagadeesh Kona <jagadeesh.kona@oss.qualcomm.com>
clk: qcom: Add support for camera clock controller on Maili
Maili camcc is mostly identical to Hawi camcc, with a few clocks
removed, frequency table updates for a few other clocks, and PLL
configuration changes. Hence, reuse the Hawi camera clock controller
driver and extend it for the Qualcomm Maili SoC.
> diff --git a/drivers/clk/qcom/camcc-hawi.c b/drivers/clk/qcom/camcc-hawi.c
> index aa52b99aec003..dc5c108ce608c 100644
> --- a/drivers/clk/qcom/camcc-hawi.c
> +++ b/drivers/clk/qcom/camcc-hawi.c
[ ... ]
> @@ -3106,12 +3105,35 @@ static const struct of_device_id cam_cc_hawi_match_table[] = {
>
> static int cam_cc_hawi_probe(struct platform_device *pdev)
> {
> + if (device_is_compatible(&pdev->dev, "qcom,maili-camcc")) {
> + cam_cc_pll0.config = &cam_cc_pll0_config_maili;
> + cam_cc_pll1.config = &cam_cc_pll1_config_maili;
> + cam_cc_pll2.config = &cam_cc_pll2_config_maili;
> + cam_cc_pll3.config = &cam_cc_pll3_config_maili;
> + cam_cc_pll4.config = &cam_cc_pll4_config_maili;
> + cam_cc_pll5.config = &cam_cc_pll5_config_maili;
> + cam_cc_pll6.config = &cam_cc_pll6_config_maili;
> + cam_cc_pll7.config = &cam_cc_pll7_config_maili;
> + cam_cc_pll8.config = &cam_cc_pll8_config_maili;
> +
> + cam_cc_camnoc_rt_axi_clk_src.freq_tbl = ftbl_cam_cc_camnoc_rt_axi_clk_src_maili;
> + cam_cc_cci_0_clk_src.freq_tbl = ftbl_cam_cc_cci_0_clk_src_maili;
> + cam_cc_ofe_clk_src.freq_tbl = ftbl_cam_cc_ofe_clk_src_maili;
[Severity: Medium]
Since cam_cc_cci_1_clk_src statically references ftbl_cam_cc_cci_0_clk_src,
should it also be updated to use the new Maili table here?
Without an update for cam_cc_cci_1_clk_src, it will continue using the old
Hawi frequency table (ftbl_cam_cc_cci_0_clk_src). This means cci_0 gets the
new P_CAM_CC_PLL0_OUT_EVEN with a /16 integer divider, while cci_1 remains
on P_CAM_CC_PLL0_OUT_ODD with a 3/32 fractional divider.
Could this mismatch and unintended configuration cause instability or failure
for cameras attached to the second Camera Control Interface (CCI_1) on the
Maili SoC?
> +
> + cam_cc_hawi_clocks[CAM_CC_CCI_2_CLK_SRC] = NULL;
> + cam_cc_hawi_clocks[CAM_CC_CCI_2_CLK] = NULL;
> + cam_cc_hawi_clocks[CAM_CC_CSI5PHYTIMER_CLK_SRC] = NULL;
> + cam_cc_hawi_clocks[CAM_CC_CSI5PHYTIMER_CLK] = NULL;
> + cam_cc_hawi_clocks[CAM_CC_CSIPHY5_CLK] = NULL;
> + }
> +
> return qcom_cc_probe(pdev, &cam_cc_hawi_desc);
> }
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260921-maili_camcc-v3-0-2f8d739ac2d4@oss.qualcomm.com?part=2
next prev parent reply other threads:[~2026-09-21 16:50 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-21 16:40 [PATCH v3 0/2] clk: qcom: Add camera clock controllers support for Qualcomm Maili SoC Jagadeesh Kona
2026-09-21 16:40 ` [PATCH v3 1/2] dt-bindings: clock: qcom: Add Maili camera clock controllers Jagadeesh Kona
2026-09-21 16:40 ` [PATCH v3 2/2] clk: qcom: Add support for camera clock controller on Maili Jagadeesh Kona
2026-09-21 16:50 ` sashiko-bot [this message]
2026-09-23 13:23 ` Konrad Dybcio
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260921165032.11B1E1F000FF@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=jagadeesh.kona@oss.qualcomm.com \
--cc=linux-clk@vger.kernel.org \
--cc=robh@kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox