]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: ftgmac100: Simplify legacy MDIO setup
authorAndrew Lunn <andrew@lunn.ch>
Fri, 6 Feb 2026 03:17:50 +0000 (11:17 +0800)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 10 Feb 2026 12:40:50 +0000 (13:40 +0100)
commit3e523741aae7d7835bd7f64eedfe44d3e1c64f4d
tree4f78c2683eaf4ef18513be550be87f9deb030b74
parentefeb214411730dbbd7271bd0ad71823dec525289
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 <andrew@lunn.ch>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: Jacky Chou <jacky_chou@aspeedtech.com>
Link: https://patch.msgid.link/20260206-ftgmac-cleanup-v5-10-ad28a9067ea7@aspeedtech.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/faraday/ftgmac100.c