From: Johannes Erdfelt <johannes@erdfelt.com>
To: "Heiko Stübner" <heiko@sntech.de>
Cc: Jianfeng Liu <liujianfeng1994@gmail.com>,
Sebastian Reichel <sebastian.reichel@collabora.com>,
simona@ffwll.ch, devicetree@vger.kernel.org, conor+dt@kernel.org,
robh@kernel.org, maarten.lankhorst@linux.intel.com,
hjc@rock-chips.com, dri-devel@lists.freedesktop.org,
linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org,
mripard@kernel.org, tzimmermann@suse.de, andy.yan@rock-chips.com,
krzk+dt@kernel.org, kernel@collabora.com, airlied@gmail.com,
linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH 3/4] arm64: dts: rockchip: Add HDMI1 PHY PLL clock source to VOP2 on RK3588
Date: Fri, 21 Feb 2025 22:10:43 -0800 [thread overview]
Message-ID: <20250222061043.GW16911@sventech.com> (raw)
In-Reply-To: <2425191.NG923GbCHz@diego>
On Tue, Feb 18, 2025, Heiko Stübner <heiko@sntech.de> wrote:
> I was more thinking about fixing the correct thing, with something like:
>
> ----------- 8< ----------
> diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c
> index cf7720b9172f..50faafbf5dda 100644
> --- a/drivers/clk/clk.c
> +++ b/drivers/clk/clk.c
> @@ -5258,6 +5258,10 @@ of_clk_get_hw_from_clkspec(struct of_phandle_args *clkspec)
> if (!clkspec)
> return ERR_PTR(-EINVAL);
>
> + /* Check if node in clkspec is in disabled/fail state */
> + if (!of_device_is_available(clkspec->np))
> + return ERR_PTR(-ENOENT);
> +
> mutex_lock(&of_clk_mutex);
> list_for_each_entry(provider, &of_clk_providers, link) {
> if (provider->node == clkspec->np) {
> ----------- 8< ----------
>
> Because right now the clk framework does not handle nodes in
> failed/disabled state and would defer indefinitly.
I've been testing the recent patches Jimmy Hon has posted to add the
Orange Pi 5 Ultra DT and I ran into this bug. The Ultra uses HDMI1 for
the HDMI TX.
This patch successfully fixes the issue I was seeing.
JE
WARNING: multiple messages have this Message-ID (diff)
From: Johannes Erdfelt <johannes@erdfelt.com>
To: "Heiko Stübner" <heiko@sntech.de>
Cc: Jianfeng Liu <liujianfeng1994@gmail.com>,
Sebastian Reichel <sebastian.reichel@collabora.com>,
simona@ffwll.ch, devicetree@vger.kernel.org, conor+dt@kernel.org,
robh@kernel.org, maarten.lankhorst@linux.intel.com,
hjc@rock-chips.com, dri-devel@lists.freedesktop.org,
linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org,
mripard@kernel.org, tzimmermann@suse.de, andy.yan@rock-chips.com,
krzk+dt@kernel.org, kernel@collabora.com, airlied@gmail.com,
linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH 3/4] arm64: dts: rockchip: Add HDMI1 PHY PLL clock source to VOP2 on RK3588
Date: Fri, 21 Feb 2025 22:10:43 -0800 [thread overview]
Message-ID: <20250222061043.GW16911@sventech.com> (raw)
In-Reply-To: <2425191.NG923GbCHz@diego>
On Tue, Feb 18, 2025, Heiko Stübner <heiko@sntech.de> wrote:
> I was more thinking about fixing the correct thing, with something like:
>
> ----------- 8< ----------
> diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c
> index cf7720b9172f..50faafbf5dda 100644
> --- a/drivers/clk/clk.c
> +++ b/drivers/clk/clk.c
> @@ -5258,6 +5258,10 @@ of_clk_get_hw_from_clkspec(struct of_phandle_args *clkspec)
> if (!clkspec)
> return ERR_PTR(-EINVAL);
>
> + /* Check if node in clkspec is in disabled/fail state */
> + if (!of_device_is_available(clkspec->np))
> + return ERR_PTR(-ENOENT);
> +
> mutex_lock(&of_clk_mutex);
> list_for_each_entry(provider, &of_clk_providers, link) {
> if (provider->node == clkspec->np) {
> ----------- 8< ----------
>
> Because right now the clk framework does not handle nodes in
> failed/disabled state and would defer indefinitly.
I've been testing the recent patches Jimmy Hon has posted to add the
Orange Pi 5 Ultra DT and I ran into this bug. The Ultra uses HDMI1 for
the HDMI TX.
This patch successfully fixes the issue I was seeing.
JE
_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip
next prev parent reply other threads:[~2025-02-22 6:17 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-15 0:55 [PATCH 0/4] Improve Rockchip VOP2 display modes handling on RK3588 HDMI1 Cristian Ciocaltea
2025-02-15 0:55 ` Cristian Ciocaltea
2025-02-15 0:55 ` [PATCH 1/4] drm/rockchip: vop2: Improve " Cristian Ciocaltea
2025-02-15 0:55 ` Cristian Ciocaltea
2025-02-15 0:55 ` [PATCH 2/4] arm64: dts: rockchip: Enable HDMI1 PHY clk provider on RK3588 Cristian Ciocaltea
2025-02-15 0:55 ` Cristian Ciocaltea
2025-02-15 0:55 ` [PATCH 3/4] arm64: dts: rockchip: Add HDMI1 PHY PLL clock source to VOP2 " Cristian Ciocaltea
2025-02-15 0:55 ` Cristian Ciocaltea
2025-02-17 2:44 ` Jianfeng Liu
2025-02-17 2:44 ` Jianfeng Liu
2025-02-17 14:33 ` [PATCH " Heiko Stübner
2025-02-17 14:33 ` Heiko Stübner
2025-02-17 23:33 ` Cristian Ciocaltea
2025-02-17 23:33 ` Cristian Ciocaltea
2025-02-18 3:38 ` Jianfeng Liu
2025-02-18 3:38 ` Jianfeng Liu
2025-02-18 9:52 ` Jianfeng Liu
2025-02-18 9:52 ` Jianfeng Liu
2025-02-18 10:00 ` Heiko Stübner
2025-02-18 10:00 ` Heiko Stübner
2025-02-18 12:17 ` Jianfeng Liu
2025-02-18 12:17 ` Jianfeng Liu
2025-02-18 14:13 ` Sebastian Reichel
2025-02-18 14:13 ` Sebastian Reichel
2025-02-18 14:53 ` Heiko Stübner
2025-02-18 14:53 ` Heiko Stübner
2025-02-18 16:05 ` Sebastian Reichel
2025-02-18 16:05 ` Sebastian Reichel
2025-02-18 23:40 ` Cristian Ciocaltea
2025-02-18 23:40 ` Cristian Ciocaltea
2025-02-22 6:10 ` Johannes Erdfelt [this message]
2025-02-22 6:10 ` Johannes Erdfelt
2025-02-15 0:55 ` [PATCH 4/4] arm64: dts: rockchip: Enable HDMI1 on rk3588-evb1 Cristian Ciocaltea
2025-02-15 0:55 ` Cristian Ciocaltea
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=20250222061043.GW16911@sventech.com \
--to=johannes@erdfelt.com \
--cc=airlied@gmail.com \
--cc=andy.yan@rock-chips.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=heiko@sntech.de \
--cc=hjc@rock-chips.com \
--cc=kernel@collabora.com \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rockchip@lists.infradead.org \
--cc=liujianfeng1994@gmail.com \
--cc=maarten.lankhorst@linux.intel.com \
--cc=mripard@kernel.org \
--cc=robh@kernel.org \
--cc=sebastian.reichel@collabora.com \
--cc=simona@ffwll.ch \
--cc=tzimmermann@suse.de \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.