From: sashiko-bot@kernel.org
To: "Taniya Das" <taniya.das@oss.qualcomm.com>
Cc: conor+dt@kernel.org, devicetree@vger.kernel.org, robh@kernel.org
Subject: Re: [PATCH v10 09/10] clk: qcom: camcc: Add support for camera clock controller for Eliza
Date: Thu, 06 Aug 2026 10:56:14 +0000 [thread overview]
Message-ID: <20260806105615.9618C1F000E9@smtp.kernel.org> (raw)
In-Reply-To: <20260806-eliza-mm-cc-v9-v10-9-6ba52dd14343@oss.qualcomm.com>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [High] Missing `clk_alpha_pll_postdiv` for `P_CAM_BIST_MCLK_CC_PLL0_OUT_EVEN` causes incorrect clock rates
--
--- Patch [9]: [PATCH v10 09/10] clk: qcom: camcc: Add support for camera clock controller for Eliza ---
commit 87585fa44458a8d4bd37784a045b9c8108ed5a11
Author: Taniya Das <taniya.das@oss.qualcomm.com>
clk: qcom: camcc: Add support for camera clock controller for Eliza
Add support for the Camera Clock Controller (CAMCC) on the Eliza
platform. The CAMCC block on Eliza includes both the primary camera clock
controller and the Camera BIST clock controller, which provides the
functional MCLK required for camera operations.
> diff --git a/drivers/clk/qcom/cambistmclkcc-eliza.c b/drivers/clk/qcom/cambistmclkcc-eliza.c
> new file mode 100644
> index 0000000000000..5cb68b81095eb
> --- /dev/null
> +++ b/drivers/clk/qcom/cambistmclkcc-eliza.c
[ ... ]
> +static const struct parent_map cam_bist_mclk_cc_parent_map_0[] = {
> + { P_BI_TCXO, 0 },
> + { P_CAM_BIST_MCLK_CC_PLL0_OUT_EVEN, 3 },
> + { P_CAM_BIST_MCLK_CC_PLL0_OUT_MAIN, 5 },
> +};
> +
> +static const struct clk_parent_data cam_bist_mclk_cc_parent_data_0[] = {
> + { .index = DT_BI_TCXO },
> + { .hw = &cam_bist_mclk_cc_pll0.clkr.hw },
> + { .hw = &cam_bist_mclk_cc_pll0.clkr.hw },
> +};
[Severity: High]
Are both the EVEN and MAIN outputs mapped to the exact same hardware object
here?
Since there is no clk_alpha_pll_postdiv object defined for the EVEN output,
the Common Clock Framework will treat the EVEN output as 960MHz (the main PLL
rate) rather than 480MHz.
[ ... ]
> +static const struct freq_tbl ftbl_cam_bist_mclk_cc_mclk0_clk_src[] = {
> + F(19200000, P_BI_TCXO, 1, 0, 0),
> + F(24000000, P_CAM_BIST_MCLK_CC_PLL0_OUT_EVEN, 10, 1, 4),
[Severity: High]
Will this lead to an incorrect physical clock rate of 12MHz instead of 24MHz?
Because the CCF believes the EVEN source rate is 960MHz, it will program the
hardware with a divisor of 10. However, since the physical hardware EVEN
signal is actually 480MHz, dividing 480MHz by 10 and then by 4 (m=1, n=4)
produces 12MHz, which might cause camera operations to fail.
> + F(68571429, P_CAM_BIST_MCLK_CC_PLL0_OUT_MAIN, 14, 0, 0),
> + { }
> +};
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260806-eliza-mm-cc-v9-v10-0-6ba52dd14343@oss.qualcomm.com?part=9
next prev parent reply other threads:[~2026-08-06 10:56 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-06 10:34 [PATCH v10 00/10] Add support for Video, Camera, Graphics clock controllers on Eliza Taniya Das
2026-08-06 10:34 ` [PATCH v10 01/10] dt-bindings: clock: qcom,milos-camcc: Add missing power-domains support Taniya Das
2026-08-06 10:34 ` [PATCH v10 02/10] dt-bindings: clock: qcom,milos-videocc: " Taniya Das
2026-08-06 10:34 ` [PATCH v10 03/10] arm64: dts: qcom: milos: Add power-domains for camcc and videocc Taniya Das
2026-08-06 10:34 ` [PATCH v10 04/10] dt-bindings: clock: qcom: Add video clock controller on Qualcomm Eliza SoC Taniya Das
2026-08-06 10:34 ` [PATCH v10 05/10] dt-bindings: clock: qcom: document the Eliza GPU Clock Controller Taniya Das
2026-08-06 10:34 ` [PATCH v10 06/10] dt-bindings: clock: qcom: Add support for CAMCC for Eliza Taniya Das
2026-08-06 10:48 ` sashiko-bot
2026-08-06 10:34 ` [PATCH v10 07/10] clk: qcom: videocc: Add video clock controller driver " Taniya Das
2026-08-06 10:34 ` [PATCH v10 08/10] clk: qcom: gpucc: Add GPU Clock Controller " Taniya Das
2026-08-06 10:34 ` [PATCH v10 09/10] clk: qcom: camcc: Add support for camera clock controller " Taniya Das
2026-08-06 10:56 ` sashiko-bot [this message]
2026-08-06 10:34 ` [PATCH v10 10/10] arm64: dts: qcom: eliza: Add support for MM clock controllers Taniya Das
2026-08-06 10:47 ` sashiko-bot
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=20260806105615.9618C1F000E9@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=robh@kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
--cc=taniya.das@oss.qualcomm.com \
/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