Skip to content

Commit 0855b43

Browse files
lunnPaolo Abeni
authored andcommitted
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: 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-12-ad28a9067ea7@aspeedtech.com Signed-off-by: Paolo Abeni <pabeni@redhat.com>
1 parent 20248a7 commit 0855b43

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

drivers/net/ethernet/faraday/ftgmac100.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1717,7 +1717,7 @@ static int ftgmac100_setup_mdio(struct net_device *netdev)
17171717
struct platform_device *pdev = to_platform_device(priv->dev);
17181718
struct device_node *np = pdev->dev.of_node;
17191719
struct device_node *mdio_np;
1720-
int i, err = 0;
1720+
int err = 0;
17211721
u32 reg;
17221722

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

1748-
for (i = 0; i < PHY_MAX_ADDR; i++)
1749-
priv->mii_bus->irq[i] = PHY_POLL;
1750-
17511748
mdio_np = of_get_child_by_name(np, "mdio");
17521749

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

0 commit comments

Comments
 (0)