From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
To: Chukun Pan <amadeus@jmu.edu.cn>,
"David S . Miller" <davem@davemloft.net>
Cc: Giuseppe Cavallaro <peppe.cavallaro@st.com>,
Alexandre Torgue <alexandre.torgue@foss.st.com>,
Jose Abreu <joabreu@synopsys.com>,
Eric Dumazet <edumazet@google.com>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
David Wu <david.wu@rock-chips.com>,
Rob Herring <robh+dt@kernel.org>,
Heiko Stuebner <heiko@sntech.de>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
netdev@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org,
linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH 2/2] ethernet: stmicro: stmmac: Add SGMII/QSGMII support for RK3568
Date: Tue, 29 Nov 2022 09:53:48 +0100 [thread overview]
Message-ID: <e4676089-7ce2-e123-4e2a-a7d8835e9118@linaro.org> (raw)
In-Reply-To: <20221129072714.22880-2-amadeus@jmu.edu.cn>
On 29/11/2022 08:27, Chukun Pan wrote:
> From: David Wu <david.wu@rock-chips.com>
>
> The gmac of RK3568 supports RGMII/SGMII/QSGMII interface.
> This patch adds the remaining SGMII/QSGMII support.
Do not use "This commit/patch".
https://elixir.bootlin.com/linux/v5.17.1/source/Documentation/process/submitting-patches.rst#L95
>
> Run-tested-on: Ariaboard Photonicat (GMAC0 SGMII)
>
> Signed-off-by: David Wu <david.wu@rock-chips.com>
> [rebase, rewrite commit message]
> Signed-off-by: Chukun Pan <amadeus@jmu.edu.cn>
> ---
> .../net/ethernet/stmicro/stmmac/dwmac-rk.c | 210 +++++++++++++++++-
> 1 file changed, 207 insertions(+), 3 deletions(-)
>
>
> -static int phy_power_on(struct rk_priv_data *bsp_priv, bool enable)
> +static int rk_gmac_phy_power_on(struct rk_priv_data *bsp_priv, bool enable)
> {
> struct regulator *ldo = bsp_priv->regulator;
> int ret;
> @@ -1728,6 +1909,18 @@ static struct rk_priv_data *rk_gmac_setup(struct platform_device *pdev,
> "rockchip,grf");
> bsp_priv->php_grf = syscon_regmap_lookup_by_phandle(dev->of_node,
> "rockchip,php-grf");
> + bsp_priv->xpcs = syscon_regmap_lookup_by_phandle(dev->of_node,
> + "rockchip,xpcs");
> + if (!IS_ERR(bsp_priv->xpcs)) {
> + struct phy *comphy;
> +
> + comphy = devm_of_phy_get(&pdev->dev, dev->of_node, NULL);
So instead of having PHY driver, you added a syscon and implemented PHY
driver here. No. Make a proper PHY driver.
Best regards,
Krzysztof
next prev parent reply other threads:[~2022-11-29 8:54 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-29 7:27 [PATCH 1/2] dt-bindings: net: rockchip-dwmac: add rk3568 xpcs compatible Chukun Pan
2022-11-29 7:27 ` [PATCH 2/2] ethernet: stmicro: stmmac: Add SGMII/QSGMII support for RK3568 Chukun Pan
2022-11-29 8:53 ` Krzysztof Kozlowski [this message]
2022-11-29 18:31 ` Andrew Lunn
2022-11-29 8:49 ` [PATCH 1/2] dt-bindings: net: rockchip-dwmac: add rk3568 xpcs compatible Krzysztof Kozlowski
2022-11-29 8:51 ` Krzysztof Kozlowski
2022-11-29 9:56 ` Heiko Stübner
2022-11-29 9:59 ` Krzysztof Kozlowski
2022-11-29 10:22 ` Heiko Stübner
2022-12-01 23:22 ` Rob Herring
2022-12-03 9:00 ` Chukun Pan
2022-12-03 17:27 ` Andrew Lunn
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=e4676089-7ce2-e123-4e2a-a7d8835e9118@linaro.org \
--to=krzysztof.kozlowski@linaro.org \
--cc=alexandre.torgue@foss.st.com \
--cc=amadeus@jmu.edu.cn \
--cc=davem@davemloft.net \
--cc=david.wu@rock-chips.com \
--cc=devicetree@vger.kernel.org \
--cc=edumazet@google.com \
--cc=heiko@sntech.de \
--cc=joabreu@synopsys.com \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=kuba@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=peppe.cavallaro@st.com \
--cc=robh+dt@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®