]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
net: ftgmac100: correct the phy interface of NC-SI mode
authorJacky Chou <jacky_chou@aspeedtech.com>
Fri, 18 Oct 2024 05:33:31 +0000 (13:33 +0800)
committerAndrew Lunn <andrew@lunn.ch>
Sun, 20 Oct 2024 16:06:48 +0000 (11:06 -0500)
In NC-SI specification, NC-SI is using RMII, not MII.

Signed-off-by: Jacky Chou <jacky_chou@aspeedtech.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Message-ID: <20241018053331.1900100-1-jacky_chou@aspeedtech.com>
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
drivers/net/ethernet/faraday/ftgmac100.c

index e64a90a91dd4bd7c11eed13ed9e4831bbc1e62b9..10c1a2f1100057ffa744bbb81743e50222fd9169 100644 (file)
@@ -1913,7 +1913,7 @@ static int ftgmac100_probe(struct platform_device *pdev)
                        goto err_phy_connect;
                }
                err = phy_connect_direct(netdev, phydev, ftgmac100_adjust_link,
-                                        PHY_INTERFACE_MODE_MII);
+                                        PHY_INTERFACE_MODE_RMII);
                if (err) {
                        dev_err(&pdev->dev, "Connecting PHY failed\n");
                        goto err_phy_connect;