]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
net: airoha_eth: fix mdio binding to switch device
authorMikhail Kshevetskiy <mikhail.kshevetskiy@iopsys.eu>
Fri, 30 Jan 2026 22:06:23 +0000 (01:06 +0300)
committerJerome Forissier <jerome.forissier@arm.com>
Fri, 6 Feb 2026 15:42:45 +0000 (16:42 +0100)
Commit d2145a89bcf6 ("net: airoha: bind MDIO controller on Ethernet load")
refers to non-present CONFIG_MDIO_MT7531 and non-present "mt7531-mdio"
driver. It should use CONFIG_MDIO_MT7531_MMIO and "mt7531-mdio-mmio"
instead.

Fixes: d2145a89bcf6 ("net: airoha: bind MDIO controller on Ethernet load")
Signed-off-by: Mikhail Kshevetskiy <mikhail.kshevetskiy@iopsys.eu>
drivers/net/Kconfig
drivers/net/airoha_eth.c

index 4fda1b0c28cf9fe9563c40ca31dea4e01cbf4342..47e2fa192c2a2618721119a491d7513769891f89 100644 (file)
@@ -127,7 +127,7 @@ config AIROHA_ETH
        select PHYLIB
        select DEVRES
        select DM_RESET
-       select MDIO_MT7531
+       select MDIO_MT7531_MMIO
        help
          This Driver support Airoha Ethernet QDMA Driver
          Say Y to enable support for the Airoha Ethernet QDMA.
index 046b677d78e328cb5a419ad450b4b092a843e729..5e393db5ffeaba18062347a40cd02bb3b922a714 100644 (file)
@@ -989,7 +989,7 @@ static int airoha_eth_bind(struct udevice *dev)
        struct udevice *mdio_dev;
        int ret = 0;
 
-       if (!CONFIG_IS_ENABLED(MDIO_MT7531))
+       if (!CONFIG_IS_ENABLED(MDIO_MT7531_MMIO))
                return 0;
 
        switch_node = ofnode_by_compatible(ofnode_null(),
@@ -1005,7 +1005,7 @@ static int airoha_eth_bind(struct udevice *dev)
                return 0;
        }
 
-       ret = device_bind_driver_to_node(dev, "mt7531-mdio", "mdio",
+       ret = device_bind_driver_to_node(dev, "mt7531-mdio-mmio", "mdio",
                                         mdio_node, &mdio_dev);
        if (ret)
                debug("Warning: failed to bind mdio controller\n");