From: sashiko-bot@kernel.org
To: "Taniya Das" <taniya.das@oss.qualcomm.com>
Cc: robh@kernel.org, conor+dt@kernel.org, devicetree@vger.kernel.org
Subject: Re: [PATCH v9 09/10] clk: qcom: camcc: Add support for camera clock controller for Eliza
Date: Tue, 04 Aug 2026 18:57:29 +0000 [thread overview]
Message-ID: <20260804185730.4A44E1F000E9@smtp.kernel.org> (raw)
In-Reply-To: <20260804-eliza-mm-cc-v9-v9-9-39067760dc3c@oss.qualcomm.com>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [High] Missing post-divider clock definition for `cam_bist_mclk_cc_pll0_out_even` causes incorrect RCG frequency calculations.
--
--- Patch [9]: [PATCH v9 09/10] clk: qcom: camcc: Add support for camera clock controller for Eliza ---
commit 8a0c7a74e032d685c7765438594ec88ec68d1f8a
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,
which includes both the primary camera clock controller and the Camera BIST
clock controller required for functional MCLK operations.
> --- /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]
Is a post-divider definition missing here for the OUT_EVEN path?
Both the OUT_EVEN and OUT_MAIN paths currently point directly to the base
PLL (cam_bist_mclk_cc_pll0). Without a separate clk_alpha_pll_postdiv
definition for OUT_EVEN, the clock framework cannot read the hardware
post-divider and will assume the rate is the full 960 MHz instead of the
divided rate (e.g., 480 MHz).
[ ... ]
> +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 result in an incorrect output frequency for the 24 MHz MCLK?
Because the framework assumes the P_CAM_BIST_MCLK_CC_PLL0_OUT_EVEN input
is 960 MHz, it calculates a division factor of 40 (pre_div=10, n=4) to
achieve 24 MHz. If the actual hardware parent rate is 480 MHz, dividing by
40 would result in an MCLK frequency of 12 MHz instead, which could cause
camera sensor initialization or streaming to fail.
> + F(68571429, P_CAM_BIST_MCLK_CC_PLL0_OUT_MAIN, 14, 0, 0),
> + { }
> +};
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260804-eliza-mm-cc-v9-v9-0-39067760dc3c@oss.qualcomm.com?part=9
next prev parent reply other threads:[~2026-08-04 18:57 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-04 17:50 [PATCH v9 00/10] Add support for Video, Camera, Graphics clock controllers on Eliza Taniya Das
2026-08-04 17:50 ` [PATCH v9 01/10] dt-bindings: clock: qcom,milos-camcc: Add missing power-domains support Taniya Das
2026-08-04 17:50 ` [PATCH v9 02/10] dt-bindings: clock: qcom,milos-videocc: " Taniya Das
2026-08-04 17:50 ` [PATCH v9 03/10] arm64: dts: qcom: milos: Add power-domains for camcc and videocc Taniya Das
2026-08-05 13:42 ` Abel Vesa
2026-08-04 17:50 ` [PATCH v9 04/10] dt-bindings: clock: qcom: Add video clock controller on Qualcomm Eliza SoC Taniya Das
2026-08-04 17:50 ` [PATCH v9 05/10] dt-bindings: clock: qcom: document the Eliza GPU Clock Controller Taniya Das
2026-08-04 17:50 ` [PATCH v9 06/10] dt-bindings: clock: qcom: Add support for CAMCC for Eliza Taniya Das
2026-08-04 18:29 ` sashiko-bot
2026-08-05 14:26 ` Rob Herring
2026-08-06 9:58 ` Taniya Das
2026-08-04 17:50 ` [PATCH v9 07/10] clk: qcom: videocc: Add video clock controller driver " Taniya Das
2026-08-04 17:50 ` [PATCH v9 08/10] clk: qcom: gpucc: Add GPU Clock Controller " Taniya Das
2026-08-05 13:40 ` Abel Vesa
2026-08-04 17:50 ` [PATCH v9 09/10] clk: qcom: camcc: Add support for camera clock controller " Taniya Das
2026-08-04 18:57 ` sashiko-bot [this message]
2026-08-04 17:50 ` [PATCH v9 10/10] arm64: dts: qcom: eliza: Add support for MM clock controllers Taniya Das
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=20260804185730.4A44E1F000E9@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