diff options
| author | Mikhail Kshevetskiy <[email protected]> | 2026-01-31 01:06:24 +0300 |
|---|---|---|
| committer | Jerome Forissier <[email protected]> | 2026-02-06 16:42:45 +0100 |
| commit | caa62920e32a4ea2c134b44265eb19429814b430 (patch) | |
| tree | 4d8c653b1b68fe775af5da1efda39e02251c0ce5 /drivers | |
| parent | 1db453a5fee45194be920de6d1b5edf2117ebe1c (diff) | |
net: airoha_eth: use proper switch node for en7523 case
Commit d2145a89bcf6 ("net: airoha: bind MDIO controller on Ethernet load")
uses "airoha,en7581-switch" dts node for finding MDIO childs. This is wrong
for EN7523 SoC. The correct node name should be used instead.
Fixes: d2145a89bcf6 ("net: airoha: bind MDIO controller on Ethernet load")
Signed-off-by: Mikhail Kshevetskiy <[email protected]>
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/net/airoha_eth.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/airoha_eth.c b/drivers/net/airoha_eth.c index 5e393db5ffe..3a0ac7ce368 100644 --- a/drivers/net/airoha_eth.c +++ b/drivers/net/airoha_eth.c @@ -985,6 +985,7 @@ static int arht_eth_write_hwaddr(struct udevice *dev) static int airoha_eth_bind(struct udevice *dev) { + struct airoha_eth_soc_data *data = (void *)dev_get_driver_data(dev); ofnode switch_node, mdio_node; struct udevice *mdio_dev; int ret = 0; @@ -993,7 +994,7 @@ static int airoha_eth_bind(struct udevice *dev) return 0; switch_node = ofnode_by_compatible(ofnode_null(), - "airoha,en7581-switch"); + data->switch_compatible); if (!ofnode_valid(switch_node)) { debug("Warning: missing switch node\n"); return 0; |
