Linux clock framework development
 help / color / mirror / Atom feed
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,
	linux-clk@vger.kernel.org
Subject: Re: [PATCH v2 3/3] clk: qcom: dprxcc: Add Nord DPRX clock controller support
Date: Wed, 23 Sep 2026 19:32:36 +0000	[thread overview]
Message-ID: <20260923193236.E03411F00893@smtp.kernel.org> (raw)
In-Reply-To: <20260924-nords_dprx-v2-3-fa4364e087ef@oss.qualcomm.com>

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [High] clk: qcom: missing runtime PM enablement in DPRX CC probe
--

commit 6de521e23dcd665ee6611adb907119066bae1783
Author: Taniya Das <taniya.das@oss.qualcomm.com>

clk: qcom: dprxcc: Add Nord DPRX clock controller support

This commit adds support for the DisplayPort Receiver (DPRX) clock controllers
on Nord devices. Two identical instances, DPRX0 and DPRX1, are introduced to
provide core, audio, AHB, and video memory clocks.

> diff --git a/drivers/clk/qcom/dprxcc0-nord.c b/drivers/clk/qcom/dprxcc0-nord.c
> new file mode 100644
> index 0000000000000..d17b9338f33bf
> --- /dev/null
> +++ b/drivers/clk/qcom/dprxcc0-nord.c

[ ... ]

> +static void dprx_cc_0_nord_regs_configure(struct device *dev, struct regmap *regmap)
> +{
> +	/*
> +	 * Configure cdiv 20 for core aud and 11 for core ahb clks of DPRX CC
> +	 */
> +	regmap_write(regmap, dprx_0_dprx_cc_core_aud_div_clk_src.reg, 0x13);
> +	regmap_write(regmap, dprx_0_dprx_cc_core_ahb_div_clk_src.reg, 0x0A);
> +}

[Severity: High]
Will this direct register access trigger a synchronous external abort? 

Since the probe function unconditionally calls qcom_cc_probe() which then
directly invokes this configuration callback, the registers are accessed
before the power domain is asserted. Accessing physical registers of a
peripheral clock controller without its power domain being ON can hang the
system at boot.

[ ... ]

> +static const struct qcom_cc_desc dprx_cc_0_nord_desc = {
> +	.config = &dprx_cc_0_nord_regmap_config,
> +	.clks = dprx_cc_0_nord_clocks,
> +	.num_clks = ARRAY_SIZE(dprx_cc_0_nord_clocks),
> +	.resets = dprx_cc_0_nord_resets,
> +	.num_resets = ARRAY_SIZE(dprx_cc_0_nord_resets),
> +	.driver_data = &dprx_cc_0_nord_driver_data,
> +};

[Severity: High]
Should this descriptor include .use_rpm = true?

Without it, the QCOM CC core does not automatically call
devm_pm_runtime_enable() and pm_runtime_resume_and_get() before invoking
the clk_regs_configure callback, which leads to the unpowered register
access above.

> diff --git a/drivers/clk/qcom/dprxcc1-nord.c b/drivers/clk/qcom/dprxcc1-nord.c
> new file mode 100644
> index 0000000000000..851a97c196c0a
> --- /dev/null
> +++ b/drivers/clk/qcom/dprxcc1-nord.c

[ ... ]

> +static const struct qcom_cc_desc dprx_cc_1_nord_desc = {
> +	.config = &dprx_cc_1_nord_regmap_config,
> +	.clks = dprx_cc_1_nord_clocks,
> +	.num_clks = ARRAY_SIZE(dprx_cc_1_nord_clocks),
> +	.resets = dprx_cc_1_nord_resets,
> +	.num_resets = ARRAY_SIZE(dprx_cc_1_nord_resets),
> +	.driver_data = &dprx_cc_1_nord_driver_data,
> +};

[Severity: High]
Does this second instance also need .use_rpm = true added here to prevent
the same unpowered register access issue during probe?

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260924-nords_dprx-v2-0-fa4364e087ef@oss.qualcomm.com?part=3

  reply	other threads:[~2026-09-23 19:32 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-23 19:21 [PATCH v2 0/3] clk: qcom: Add Nord DPRX clock controller support Taniya Das
2026-09-23 19:21 ` [PATCH v2 1/3] clk: qcom: clk-alpha-pll: support a 28-bit ALPHA_VAL width Taniya Das
2026-09-24  8:50   ` Shawn Guo
2026-10-01 15:17   ` Konrad Dybcio
2026-09-23 19:21 ` [PATCH v2 2/3] dt-bindings: clock: qcom: document the Nord DPRX Clock Controller Taniya Das
2026-09-24  8:56   ` Shawn Guo
2026-09-24  8:57     ` Taniya Das
2026-09-28 10:53   ` Krzysztof Kozlowski
2026-09-23 19:21 ` [PATCH v2 3/3] clk: qcom: dprxcc: Add Nord DPRX clock controller support Taniya Das
2026-09-23 19:32   ` sashiko-bot [this message]
2026-09-24  9:05   ` Shawn Guo

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=20260923193236.E03411F00893@smtp.kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=linux-clk@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