]> git.baikalelectronics.ru Git - uboot.git/commit
net: dsa: pass CPU port fixed PHY to .port_disable
authorVladimir Oltean <vladimir.oltean@nxp.com>
Sat, 18 Sep 2021 11:49:55 +0000 (14:49 +0300)
committerRamon Fried <rfried.dev@gmail.com>
Tue, 28 Sep 2021 15:50:56 +0000 (18:50 +0300)
commit48fb27763813b0f88a8ce9e0ad538df19836c6bf
treef03a3d5e653e1cee3cef2b0ff585c0fdabb7c320
parent96c1bc82997176c1a3205a52fdecf07743d872d5
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: 30f394f4206c ("net: Introduce DSA class for Ethernet switches")
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Ramon Fried <rfried.dev@gmail.com>
net/dsa-uclass.c