diff options
author | Tom Rini | 2024-03-11 13:40:06 -0400 |
---|---|---|
committer | Tom Rini | 2024-03-11 15:27:20 -0400 |
commit | 20a0ce574d6642e0dfe651467159039fac48cc4f (patch) | |
tree | 9a76dcd90a2e27e65963b4a74d1621cd10fe91f0 /drivers/net/mv88e6xxx.c | |
parent | beedf675b36841ce1e077779157a87a6505317e6 (diff) | |
parent | f3c979dd0053c082d2df170446923e7ce5edbc2d (diff) |
Merge tag 'v2024.04-rc4' into next
Prepare v2024.04-rc4
Diffstat (limited to 'drivers/net/mv88e6xxx.c')
-rw-r--r-- | drivers/net/mv88e6xxx.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/net/mv88e6xxx.c b/drivers/net/mv88e6xxx.c index c073f81e72d..8fbbc1cacca 100644 --- a/drivers/net/mv88e6xxx.c +++ b/drivers/net/mv88e6xxx.c @@ -745,6 +745,7 @@ static int mv88e6xxx_probe(struct udevice *dev) { struct dsa_pdata *dsa_pdata = dev_get_uclass_plat(dev); struct mv88e6xxx_priv *priv = dev_get_priv(dev); + fdt_addr_t smi_addr; int val, ret; if (ofnode_valid(dev_ofnode(dev)) && @@ -753,6 +754,13 @@ static int mv88e6xxx_probe(struct udevice *dev) return -ENODEV; } + smi_addr = dev_read_addr(dev); + if (smi_addr == FDT_ADDR_T_NONE) { + dev_err(dev, "Missing SMI address\n"); + return -EINVAL; + } + priv->smi_addr = smi_addr; + /* probe internal mdio bus */ ret = mv88e6xxx_probe_mdio(dev); if (ret) |