mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-02-16 14:08:45 +00:00
net: dsa: pass CPU port fixed PHY to .port_disable
While adding the logic for DSA to register a fixed-link PHY for the CPU
port, I forgot to pass it to the .port_disable method too, just
.port_enable.
Bug had no impact for felix_switch.c, due to the phy argument not being
used, but ksz9477.c does use it => NULL pointer dereference.
Fixes: fc054d563b
("net: Introduce DSA class for Ethernet switches")
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Ramon Fried <rfried.dev@gmail.com>
This commit is contained in:
parent
66fd01fe59
commit
5cc283b781
1 changed files with 1 additions and 1 deletions
|
@ -100,7 +100,7 @@ static void dsa_port_stop(struct udevice *pdev)
|
|||
|
||||
port_pdata = dev_get_parent_plat(pdev);
|
||||
ops->port_disable(dev, port_pdata->index, port_pdata->phy);
|
||||
ops->port_disable(dev, priv->cpu_port, NULL);
|
||||
ops->port_disable(dev, priv->cpu_port, priv->cpu_port_fixed_phy);
|
||||
}
|
||||
|
||||
eth_get_ops(master)->stop(master);
|
||||
|
|
Loading…
Add table
Reference in a new issue