net: airoha_eth: fix mdio binding to switch device
Commitd2145a89bc("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:d2145a89bc("net: airoha: bind MDIO controller on Ethernet load") Signed-off-by: Mikhail Kshevetskiy <mikhail.kshevetskiy@iopsys.eu>
This commit is contained in:
committed by
Jerome Forissier
parent
5fdc297b89
commit
1db453a5fe
+1
-1
@@ -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.
|
||||
|
||||
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user