Re: [PATCH net-next v13 08/15] net: stmmac: dwmac-loongson: Add phy_interface for Loongson GMAC
From: Serge Semin <hidden>
Date: 2024-07-02 08:43:41
From: Serge Semin <hidden>
Date: 2024-07-02 08:43:41
On Wed, May 29, 2024 at 06:19:47PM +0800, Yanteng Si wrote:
The phy_interface of gmac is PHY_INTERFACE_MODE_RGMII_ID.
It's better to translate this to a normal sentence: "PHY-interface of the Loongson GMAC device is RGMII with no internal delays added to the data lines signal. So to comply with that let's pre-initialize the platform-data field with the respective enum constant." -Serge(y)
Signed-off-by: Feiyang Chen <redacted> Signed-off-by: Yinggang Gu <redacted> Signed-off-by: Yanteng Si <redacted> --- drivers/net/ethernet/stmicro/stmmac/dwmac-loongson.c | 2 ++ 1 file changed, 2 insertions(+)diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-loongson.c b/drivers/net/ethernet/stmicro/stmmac/dwmac-loongson.c index e725c59c6c98..0289956e274b 100644 --- a/drivers/net/ethernet/stmicro/stmmac/dwmac-loongson.c +++ b/drivers/net/ethernet/stmicro/stmmac/dwmac-loongson.c@@ -49,6 +49,8 @@ static int loongson_gmac_data(struct plat_stmmacenet_data *plat) { loongson_default_data(plat); + plat->phy_interface = PHY_INTERFACE_MODE_RGMII_ID; + return 0; }-- 2.31.4