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 v6 4/7] clk: qcom: videocc: Add video clock controller driver for Eliza
Date: Tue, 09 Jun 2026 15:24:07 +0000 [thread overview]
Message-ID: <20260609152408.902DC1F00893@smtp.kernel.org> (raw)
In-Reply-To: <20260609-b4-eliza_mm_cc_v6-v6-4-17df09e5940c@oss.qualcomm.com>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [High] video_cc_ahb_clk_src incorrectly sets .hw_clk_ctrl = true.
--
commit 17dde18cb6830ef09380f666b54112994b478845
Author: Taniya Das <taniya.das@oss.qualcomm.com>
clk: qcom: videocc: Add video clock controller driver for Eliza
This commit adds support for the video clock controller on the Eliza platform.
It allows video clients to request videocc clocks for video encoding and
decoding functionality.
> diff --git a/drivers/clk/qcom/videocc-eliza.c b/drivers/clk/qcom/videocc-eliza.c
> new file mode 100644
> index 0000000000000..36af35e070299
> --- /dev/null
> +++ b/drivers/clk/qcom/videocc-eliza.c
[ ... ]
> +static const struct freq_tbl ftbl_video_cc_ahb_clk_src[] = {
> + F(19200000, P_BI_TCXO, 1, 0, 0),
> + { }
> +};
> +
> +static struct clk_rcg2 video_cc_ahb_clk_src = {
> + .cmd_rcgr = 0x8018,
> + .mnd_width = 0,
> + .hid_width = 5,
> + .parent_map = video_cc_parent_map_0,
> + .freq_tbl = ftbl_video_cc_ahb_clk_src,
> + .hw_clk_ctrl = true,
[Severity: High]
Does this incorrectly set the hardware clock control flag on the
software-controlled AHB RCG?
Because video_cc_ahb_clk_src is an AHB bus clock, it is purely software
controlled. If the hardware clock control flag is set, when
clk_rcg2_shared_ops attempts to park the clock at initialization by writing
to CFG_REG and triggering the CMD_UPDATE bit, the hardware will wait
indefinitely for a hardware trigger that never arrives.
This causes update_config() to timeout, emit a warning, and fail to apply the
configuration, effectively leaving the clock stuck in its bootloader state.
> + .clkr.hw.init = &(const struct clk_init_data) {
> + .name = "video_cc_ahb_clk_src",
> + .parent_data = video_cc_parent_data_0,
> + .num_parents = ARRAY_SIZE(video_cc_parent_data_0),
> + .flags = CLK_SET_RATE_PARENT,
> + .ops = &clk_rcg2_shared_ops,
> + },
> +};
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260609-b4-eliza_mm_cc_v6-v6-0-17df09e5940c@oss.qualcomm.com?part=4
next prev parent reply other threads:[~2026-06-09 15:24 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-09 15:02 [PATCH v6 0/7] Add support for Video, Camera, Graphics clock controllers on Eliza Taniya Das
2026-06-09 15:02 ` [PATCH v6 1/7] dt-bindings: clock: qcom: Add video clock controller on Qualcomm Eliza SoC Taniya Das
2026-06-09 15:02 ` [PATCH v6 2/7] dt-bindings: clock: qcom: document the Eliza GPU Clock Controller Taniya Das
2026-06-09 15:02 ` [PATCH v6 3/7] dt-bindings: clock: qcom: Add support for CAMCC for Eliza Taniya Das
2026-06-09 15:16 ` sashiko-bot
2026-06-09 15:02 ` [PATCH v6 4/7] clk: qcom: videocc: Add video clock controller driver " Taniya Das
2026-06-09 15:24 ` sashiko-bot [this message]
2026-06-09 15:02 ` [PATCH v6 5/7] clk: qcom: gpucc: Add GPU Clock Controller " Taniya Das
2026-06-09 15:02 ` [PATCH v6 6/7] clk: qcom: camcc: Add support for camera clock controller " Taniya Das
2026-06-09 15:21 ` sashiko-bot
2026-06-09 15:02 ` [PATCH v6 7/7] arm64: dts: qcom: eliza: Add support for MM clock controllers Taniya Das
2026-06-09 15:30 ` 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=20260609152408.902DC1F00893@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