mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-05-05 04:36:13 +02:00
net: fec_mxc: fix probe of MDIO bus for DM_MDIO
When initializing the MDIO bus the MDC signal needs to be configured.
Otherwise the communication over the bus may fail. Add the call to
fec_mii_setspeed to the DM_MDIO probe handler.
Fixes: 3b8f99a3e762 ("net: fec: add support for DM_MDIO")
Signed-off-by: Markus Niebel <Markus.Niebel@ew.tq-group.com>
Signed-off-by: Alexander Stein <alexander.stein@ew.tq-group.com>
Signed-off-by: Alexander Feilke <alexander.feilke@ew.tq-group.com>
This commit is contained in:
parent
2aa6880bc5
commit
206f38e8dd
@ -1051,6 +1051,7 @@ static int dm_fec_mdio_probe(struct udevice *dev)
|
||||
struct dm_fec_mdio_priv *priv = dev_get_priv(dev);
|
||||
|
||||
priv->regs = (struct ethernet_regs *)ofnode_get_addr(dev_ofnode(dev->parent));
|
||||
fec_mii_setspeed(dev->parent, priv->regs);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user