aboutsummaryrefslogtreecommitdiff
path: root/drivers/net/npcm750_eth.c
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2022-12-23 07:44:30 -0500
committerTom Rini <trini@konsulko.com>2022-12-23 07:44:30 -0500
commit24a0a00f07fcbf4f8ca64cb13b2fa7d624ca6af9 (patch)
tree287ff08214bd70bcd070a2bd904800675ced8167 /drivers/net/npcm750_eth.c
parent1154e965d0bd16cf438afdaa4118e1455fd71a44 (diff)
parent440098c42e7369f4b5703a82723b2ce268180a1f (diff)
Merge branch '2022-12-22-assorted-important-fixes'
- Split up the aarch64 Azure CI job more, to avoid time limits, nuvoton network fix, SPL_OPTEE_IMAGE dependency fix, some fixes to the IPv6 code, PowerPC build flag fixes, silence pylibfdt version warning.
Diffstat (limited to 'drivers/net/npcm750_eth.c')
-rw-r--r--drivers/net/npcm750_eth.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/npcm750_eth.c b/drivers/net/npcm750_eth.c
index 409d5cce4a..bd29a10def 100644
--- a/drivers/net/npcm750_eth.c
+++ b/drivers/net/npcm750_eth.c
@@ -710,12 +710,12 @@ static int npcm750_eth_ofdata_to_platdata(struct udevice *dev)
pdata->phy_interface = -1;
phy_mode = fdt_getprop(gd->fdt_blob, dev_of_offset(dev), "phy-mode", NULL);
+
if (phy_mode)
- pdata->phy_interface = phy_get_interface_by_name(phy_mode);
- if (pdata->phy_interface == -1) {
- printf("%s: Invalid PHY interface '%s'\n", __func__, phy_mode);
+ pdata->phy_interface = dev_read_phy_mode(dev);
+
+ if (pdata->phy_interface == PHY_INTERFACE_MODE_NA)
return -EINVAL;
- }
pdata->max_speed = 0;
cell = fdt_getprop(gd->fdt_blob, dev_of_offset(dev), "max-speed", NULL);