From: "Heiko Stübner" <heiko@sntech.de>
To: jonas@kwiboo.se, Chukun Pan <amadeus@jmu.edu.cn>
Cc: amadeus@jmu.edu.cn, conor+dt@kernel.org,
devicetree@vger.kernel.org, kishon@kernel.org,
krzk+dt@kernel.org, linux-arm-kernel@lists.infradead.org,
linux-phy@lists.infradead.org,
linux-rockchip@lists.infradead.org, liujianfeng1994@gmail.com,
p.zabel@pengutronix.de, robh@kernel.org, vkoul@kernel.org
Subject: Re: [PATCH 1/2] arm64: dts: rockchip: rk3568: add reset-names for combphy
Date: Fri, 03 Jan 2025 11:26:09 +0100 [thread overview]
Message-ID: <4647350.cEBGB3zze1@diego> (raw)
In-Reply-To: <20250103033016.79544-1-amadeus@jmu.edu.cn>
Hi,
Am Freitag, 3. Januar 2025, 04:30:16 CET schrieb Chukun Pan:
> > The other patch in this series:
> > arm64: dts: rockchip: rk3568: add reset-names for combphy
> > is missing in v6.13-rc5, which will break pcie2 of rk3568
> > because the phy driver has changed.
>
> I don't know why the dts patch hasn't been merged into the mainline yet.
because it was christmas ;-) .
> Maybe the merge window is different. Can you test the following patch?
But in any case, the driver _must_ stay compatible with old devicetrees.
I.e. requiring a DT update is a general no-go.
> ```
> --- a/drivers/phy/rockchip/phy-rockchip-naneng-combphy.c
> +++ b/drivers/phy/rockchip/phy-rockchip-naneng-combphy.c
> @@ -325,6 +325,10 @@ static int rockchip_combphy_parse_dt(struct device *dev, struct rockchip_combphy
> priv->ext_refclk = device_property_present(dev, "rockchip,ext-refclk");
>
> priv->phy_rst = devm_reset_control_get(dev, "phy");
> + /* fallback to old behaviour */
> + if (IS_ERR_OR_NULL(priv->phy_rst))
> + priv->phy_rst = devm_reset_control_array_get_exclusive(dev);
> +
This looks like a reasonable fallback
> if (IS_ERR(priv->phy_rst))
> return dev_err_probe(dev, PTR_ERR(priv->phy_rst), "failed to get phy reset\n");
Heiko
WARNING: multiple messages have this Message-ID (diff)
From: "Heiko Stübner" <heiko@sntech.de>
To: jonas@kwiboo.se, Chukun Pan <amadeus@jmu.edu.cn>
Cc: amadeus@jmu.edu.cn, conor+dt@kernel.org,
devicetree@vger.kernel.org, kishon@kernel.org,
krzk+dt@kernel.org, linux-arm-kernel@lists.infradead.org,
linux-phy@lists.infradead.org,
linux-rockchip@lists.infradead.org, liujianfeng1994@gmail.com,
p.zabel@pengutronix.de, robh@kernel.org, vkoul@kernel.org
Subject: Re: [PATCH 1/2] arm64: dts: rockchip: rk3568: add reset-names for combphy
Date: Fri, 03 Jan 2025 11:26:09 +0100 [thread overview]
Message-ID: <4647350.cEBGB3zze1@diego> (raw)
In-Reply-To: <20250103033016.79544-1-amadeus@jmu.edu.cn>
Hi,
Am Freitag, 3. Januar 2025, 04:30:16 CET schrieb Chukun Pan:
> > The other patch in this series:
> > arm64: dts: rockchip: rk3568: add reset-names for combphy
> > is missing in v6.13-rc5, which will break pcie2 of rk3568
> > because the phy driver has changed.
>
> I don't know why the dts patch hasn't been merged into the mainline yet.
because it was christmas ;-) .
> Maybe the merge window is different. Can you test the following patch?
But in any case, the driver _must_ stay compatible with old devicetrees.
I.e. requiring a DT update is a general no-go.
> ```
> --- a/drivers/phy/rockchip/phy-rockchip-naneng-combphy.c
> +++ b/drivers/phy/rockchip/phy-rockchip-naneng-combphy.c
> @@ -325,6 +325,10 @@ static int rockchip_combphy_parse_dt(struct device *dev, struct rockchip_combphy
> priv->ext_refclk = device_property_present(dev, "rockchip,ext-refclk");
>
> priv->phy_rst = devm_reset_control_get(dev, "phy");
> + /* fallback to old behaviour */
> + if (IS_ERR_OR_NULL(priv->phy_rst))
> + priv->phy_rst = devm_reset_control_array_get_exclusive(dev);
> +
This looks like a reasonable fallback
> if (IS_ERR(priv->phy_rst))
> return dev_err_probe(dev, PTR_ERR(priv->phy_rst), "failed to get phy reset\n");
Heiko
--
linux-phy mailing list
linux-phy@lists.infradead.org
https://lists.infradead.org/mailman/listinfo/linux-phy
WARNING: multiple messages have this Message-ID (diff)
From: "Heiko Stübner" <heiko@sntech.de>
To: jonas@kwiboo.se, Chukun Pan <amadeus@jmu.edu.cn>
Cc: amadeus@jmu.edu.cn, conor+dt@kernel.org,
devicetree@vger.kernel.org, kishon@kernel.org,
krzk+dt@kernel.org, linux-arm-kernel@lists.infradead.org,
linux-phy@lists.infradead.org,
linux-rockchip@lists.infradead.org, liujianfeng1994@gmail.com,
p.zabel@pengutronix.de, robh@kernel.org, vkoul@kernel.org
Subject: Re: [PATCH 1/2] arm64: dts: rockchip: rk3568: add reset-names for combphy
Date: Fri, 03 Jan 2025 11:26:09 +0100 [thread overview]
Message-ID: <4647350.cEBGB3zze1@diego> (raw)
In-Reply-To: <20250103033016.79544-1-amadeus@jmu.edu.cn>
Hi,
Am Freitag, 3. Januar 2025, 04:30:16 CET schrieb Chukun Pan:
> > The other patch in this series:
> > arm64: dts: rockchip: rk3568: add reset-names for combphy
> > is missing in v6.13-rc5, which will break pcie2 of rk3568
> > because the phy driver has changed.
>
> I don't know why the dts patch hasn't been merged into the mainline yet.
because it was christmas ;-) .
> Maybe the merge window is different. Can you test the following patch?
But in any case, the driver _must_ stay compatible with old devicetrees.
I.e. requiring a DT update is a general no-go.
> ```
> --- a/drivers/phy/rockchip/phy-rockchip-naneng-combphy.c
> +++ b/drivers/phy/rockchip/phy-rockchip-naneng-combphy.c
> @@ -325,6 +325,10 @@ static int rockchip_combphy_parse_dt(struct device *dev, struct rockchip_combphy
> priv->ext_refclk = device_property_present(dev, "rockchip,ext-refclk");
>
> priv->phy_rst = devm_reset_control_get(dev, "phy");
> + /* fallback to old behaviour */
> + if (IS_ERR_OR_NULL(priv->phy_rst))
> + priv->phy_rst = devm_reset_control_array_get_exclusive(dev);
> +
This looks like a reasonable fallback
> if (IS_ERR(priv->phy_rst))
> return dev_err_probe(dev, PTR_ERR(priv->phy_rst), "failed to get phy reset\n");
Heiko
_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip
next prev parent reply other threads:[~2025-01-03 10:27 UTC|newest]
Thread overview: 39+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-22 7:30 [PATCH 1/2] arm64: dts: rockchip: rk3568: add reset-names for combphy Chukun Pan
2024-11-22 7:30 ` Chukun Pan
2024-11-22 7:30 ` Chukun Pan
2024-11-22 7:30 ` [PATCH 2/2] phy: rockchip: naneng-combphy: fix phy reset Chukun Pan
2024-11-22 7:30 ` Chukun Pan
2024-11-22 7:30 ` Chukun Pan
2024-11-22 8:01 ` Heiko Stuebner
2024-11-22 8:01 ` Heiko Stuebner
2024-11-22 8:01 ` Heiko Stuebner
2024-11-23 22:28 ` FUKAUMI Naoki
2024-11-23 22:28 ` FUKAUMI Naoki
2024-11-23 22:28 ` FUKAUMI Naoki
2024-11-22 7:56 ` [PATCH 1/2] arm64: dts: rockchip: rk3568: add reset-names for combphy Heiko Stuebner
2024-11-22 7:56 ` Heiko Stuebner
2024-11-22 7:56 ` Heiko Stuebner
2024-11-22 8:12 ` Heiko Stuebner
2024-11-22 8:12 ` Heiko Stuebner
2024-11-22 8:12 ` Heiko Stuebner
2024-12-02 23:29 ` (subset) " Heiko Stuebner
2024-12-02 23:29 ` Heiko Stuebner
2024-12-02 23:29 ` Heiko Stuebner
2024-12-08 16:58 ` Vinod Koul
2024-12-08 16:58 ` Vinod Koul
2024-12-08 16:58 ` Vinod Koul
2025-01-02 15:16 ` Jianfeng Liu
2025-01-02 15:16 ` Jianfeng Liu
2025-01-02 15:16 ` Jianfeng Liu
2025-01-02 16:57 ` Jonas Karlman
2025-01-02 16:57 ` Jonas Karlman
2025-01-02 16:57 ` Jonas Karlman
2025-01-03 3:30 ` Chukun Pan
2025-01-03 3:30 ` Chukun Pan
2025-01-03 3:30 ` Chukun Pan
2025-01-03 10:26 ` Heiko Stübner [this message]
2025-01-03 10:26 ` Heiko Stübner
2025-01-03 10:26 ` Heiko Stübner
2025-01-03 17:11 ` Jianfeng Liu
2025-01-03 17:11 ` Jianfeng Liu
2025-01-03 17:11 ` Jianfeng Liu
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=4647350.cEBGB3zze1@diego \
--to=heiko@sntech.de \
--cc=amadeus@jmu.edu.cn \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=jonas@kwiboo.se \
--cc=kishon@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-phy@lists.infradead.org \
--cc=linux-rockchip@lists.infradead.org \
--cc=liujianfeng1994@gmail.com \
--cc=p.zabel@pengutronix.de \
--cc=robh@kernel.org \
--cc=vkoul@kernel.org \
/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.