diff options
| author | Andrew Lunn <andrew@lunn.ch> | 2026-02-06 11:17:52 +0800 |
|---|---|---|
| committer | Paolo Abeni <pabeni@redhat.com> | 2026-02-10 13:40:50 +0100 |
| commit | 0855b43d8218bffbe187c73b679e96625897f4cb (patch) | |
| tree | 02d47ba06978ae01f68710d1b224488f5d87a0aa | |
| parent | 20248a719dc8e0095b31291dcfc6380f5a7b10b2 (diff) | |
| download | linux-next-0855b43d8218bffbe187c73b679e96625897f4cb.tar.gz linux-next-0855b43d8218bffbe187c73b679e96625897f4cb.zip | |
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>
| -rw-r--r-- | drivers/net/ethernet/faraday/ftgmac100.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/net/ethernet/faraday/ftgmac100.c b/drivers/net/ethernet/faraday/ftgmac100.c index ad1203b8de0b..b86e47853217 100644 --- a/drivers/net/ethernet/faraday/ftgmac100.c +++ b/drivers/net/ethernet/faraday/ftgmac100.c @@ -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); |
