Skip to content
Commit 2ae34111 authored by Liu Peibao's avatar Liu Peibao Committed by Jakub Kicinski
Browse files

stmmac: dwmac-loongson: fix invalid mdio_node

In current code "plat->mdio_node" is always NULL, the mdio
support is lost as there is no "mdio_bus_data". The original
driver could work as the "mdio" variable is never set to
false, which is described in commit <b0e03950> ("stmmac:
dwmac-loongson: fix uninitialized variable ......"). And
after this commit merged, the "mdio" variable is always
false, causing the mdio supoort logic lost.

Fixes: 30bba69d

 ("stmmac: pci: Add dwmac support for Loongson")
Signed-off-by: default avatarLiu Peibao <liupeibao@loongson.cn>
Reviewed-by: default avatarAndrew Lunn <andrew@lunn.ch>
Link: https://lore.kernel.org/r/20221101060218.16453-1-liupeibao@loongson.cn


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent d6dd2fe7
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment