From: Andrew Lunn Date: Fri, 6 Feb 2026 03:17:50 +0000 (+0800) Subject: net: ftgmac100: Simplify legacy MDIO setup X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3e523741aae7d7835bd7f64eedfe44d3e1c64f4d;p=thirdparty%2Fkernel%2Flinux.git net: ftgmac100: Simplify legacy MDIO setup There are old device trees which place the PHY nodes directly in the MAC nodes, rather than within an MDIO container node. The probe logic indicates that the use of NCSI and the legacy placement of PHYs is mutually exclusive. Hence priv->use_ncsi cannot be true, so there is no reason to set it false. Signed-off-by: Andrew Lunn Reviewed-by: Simon Horman Signed-off-by: Jacky Chou Link: https://patch.msgid.link/20260206-ftgmac-cleanup-v5-10-ad28a9067ea7@aspeedtech.com Signed-off-by: Paolo Abeni --- diff --git a/drivers/net/ethernet/faraday/ftgmac100.c b/drivers/net/ethernet/faraday/ftgmac100.c index c33726e7bff68..ee886ed03587d 100644 --- a/drivers/net/ethernet/faraday/ftgmac100.c +++ b/drivers/net/ethernet/faraday/ftgmac100.c @@ -2010,8 +2010,6 @@ static int ftgmac100_probe(struct platform_device *pdev) * child node. Automatically scan the MDIO bus for available * PHYs. */ - priv->use_ncsi = false; - err = ftgmac100_mii_probe(netdev); if (err) { dev_err(priv->dev, "MII probe failed!\n");