From: sashiko-bot@kernel.org
To: "Damon Ding" <damon.ding@rock-chips.com>
Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org,
krzk+dt@kernel.org
Subject: Re: [PATCH v4 05/10] drm/rockchip: analogix_dp: Enable hclk for RK3588
Date: Wed, 13 May 2026 21:08:30 +0000 [thread overview]
Message-ID: <20260513210831.46283C19425@smtp.kernel.org> (raw)
In-Reply-To: <20260512095644.1946084-6-damon.ding@rock-chips.com>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] The newly added `hclk` clock is explicitly kept permanently enabled, bypassing the driver's dynamic power management.
--
commit 55f729190dc3e9f8e6e9a2cd8960832ed10a25ba
Author: Damon Ding <damon.ding@rock-chips.com>
drm/rockchip: analogix_dp: Enable hclk for RK3588
This commit explicitly acquires and enables the HCLK_VO1 bus clock for the
RK3588 eDP controller. It replaces an implicit enablement via the
rockchip,vo-grf phandle reference to align with updated device tree bindings.
> diff --git a/drivers/gpu/drm/rockchip/analogix_dp-rockchip.c b/drivers/gpu/drm/rockchip/analogix_dp-rockchip.c
> index 06072efd7fca3..d2af5eb29dbb5 100644
> --- a/drivers/gpu/drm/rockchip/analogix_dp-rockchip.c
> +++ b/drivers/gpu/drm/rockchip/analogix_dp-rockchip.c
[ ... ]
> @@ -327,6 +328,11 @@ static int rockchip_dp_of_probe(struct rockchip_dp_device *dp)
> return dev_err_probe(dev, PTR_ERR(dp->pclk),
> "failed to get pclk property\n");
>
> + clk = devm_clk_get_optional_enabled(dev, "hclk");
> + if (IS_ERR(clk))
> + return dev_err_probe(dev, PTR_ERR(clk),
> + "failed to get hclk property\n");
> +
Does keeping this clock permanently enabled bypass the driver's dynamic power
management?
Since the local variable clk is discarded after probe, the clock will
remain enabled as long as the driver is bound. The driver currently toggles
the APB clock (dp->pclk) in rockchip_dp_poweron() and rockchip_dp_powerdown()
to save power when the display is inactive.
Should hclk be saved in the rockchip_dp_device struct and managed
symmetrically with pclk to ensure associated power domains can fully enter
low-power states during display blanking?
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260512095644.1946084-1-damon.ding@rock-chips.com?part=5
next prev parent reply other threads:[~2026-05-13 21:08 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-12 9:56 [PATCH v4 00/10] Add eDP support for RK3576 Damon Ding
2026-05-12 9:56 ` [PATCH v4 01/10] dt-bindings: display: rockchip: analogix-dp: Allow hclk as third clock Damon Ding
2026-05-12 17:12 ` Conor Dooley
2026-05-13 6:48 ` Damon Ding
2026-05-13 20:04 ` sashiko-bot
2026-05-12 9:56 ` [PATCH v4 02/10] dt-bindings: display: rockchip: analogix-dp: Add per-clock descriptions Damon Ding
2026-05-12 17:11 ` Conor Dooley
2026-05-12 9:56 ` [PATCH v4 03/10] arm64: dts: rockchip: Add missing hclk for RK3588 eDP0 Damon Ding
2026-05-12 9:56 ` [PATCH v4 04/10] arm64: dts: rockchip: Add missing hclk for RK3588 eDP1 Damon Ding
2026-05-12 9:56 ` [PATCH v4 05/10] drm/rockchip: analogix_dp: Enable hclk for RK3588 Damon Ding
2026-05-13 21:08 ` sashiko-bot [this message]
2026-05-12 9:56 ` [PATCH v4 06/10] dt-bindings: display: rockchip: analogix-dp: Add support for RK3576 Damon Ding
2026-05-12 17:13 ` Conor Dooley
2026-05-12 9:56 ` [PATCH v4 07/10] arm64: dts: rockchip: Add eDP node " Damon Ding
2026-05-12 9:56 ` [PATCH v4 08/10] drm/bridge: analogix_dp: Rename and simplify is_rockchip() Damon Ding
2026-05-12 9:56 ` [PATCH v4 09/10] drm/bridge: analogix_dp: Add support for RK3576 Damon Ding
2026-05-12 9:56 ` [PATCH v4 10/10] drm/rockchip: " Damon Ding
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=20260513210831.46283C19425@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=damon.ding@rock-chips.com \
--cc=devicetree@vger.kernel.org \
--cc=krzk+dt@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