Skip to content

Commit 3e52374

Browse files
lunnPaolo Abeni
authored andcommitted
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>
1 parent efeb214 commit 3e52374

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

drivers/net/ethernet/faraday/ftgmac100.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2010,8 +2010,6 @@ static int ftgmac100_probe(struct platform_device *pdev)
20102010
* child node. Automatically scan the MDIO bus for available
20112011
* PHYs.
20122012
*/
2013-
priv->use_ncsi = false;
2014-
20152013
err = ftgmac100_mii_probe(netdev);
20162014
if (err) {
20172015
dev_err(priv->dev, "MII probe failed!\n");

0 commit comments

Comments
 (0)