Commit 0855b43d authored by Andrew Lunn's avatar Andrew Lunn Committed by Paolo Abeni
Browse files

net: ftgmac100: Remove redundant PHY_POLL



When an MDIO bus is allocated, the irqs for each PHY are set to
polling. Remove the redundant code in the MAC driver which does the
same.

Signed-off-by: default avatarAndrew Lunn <andrew@lunn.ch>
Reviewed-by: default avatarSimon Horman <horms@kernel.org>
Signed-off-by: default avatarJacky Chou <jacky_chou@aspeedtech.com>
Link: https://patch.msgid.link/20260206-ftgmac-cleanup-v5-12-ad28a9067ea7@aspeedtech.com


Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
parent 20248a71
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -1717,7 +1717,7 @@ static int ftgmac100_setup_mdio(struct net_device *netdev)
	struct platform_device *pdev = to_platform_device(priv->dev);
	struct device_node *np = pdev->dev.of_node;
	struct device_node *mdio_np;
	int i, err = 0;
	int err = 0;
	u32 reg;

	/* initialize mdio bus */
@@ -1745,9 +1745,6 @@ static int ftgmac100_setup_mdio(struct net_device *netdev)
	priv->mii_bus->read = ftgmac100_mdiobus_read;
	priv->mii_bus->write = ftgmac100_mdiobus_write;

	for (i = 0; i < PHY_MAX_ADDR; i++)
		priv->mii_bus->irq[i] = PHY_POLL;

	mdio_np = of_get_child_by_name(np, "mdio");

	err = of_mdiobus_register(priv->mii_bus, mdio_np);