]> git.baikalelectronics.ru Git - kernel.git/commit
stmmac: dwmac-loongson: fix invalid mdio_node
authorLiu Peibao <liupeibao@loongson.cn>
Tue, 1 Nov 2022 06:02:18 +0000 (14:02 +0800)
committerJakub Kicinski <kuba@kernel.org>
Thu, 3 Nov 2022 03:30:51 +0000 (20:30 -0700)
commit5427f2ee3137731bdb77df921546d0f4418a5636
tree8f5b806446639b0355b1a3313e7a6d007c847fd7
parent6693cb0ebac49fbcb1c08b3a107d7bda7ee9446f
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 <886ef4e4af7b> ("stmmac:
dwmac-loongson: fix uninitialized variable ......"). And
after this commit merged, the "mdio" variable is always
false, causing the mdio supoort logic lost.

Fixes: 8faa7848cdb4 ("stmmac: pci: Add dwmac support for Loongson")
Signed-off-by: Liu Peibao <liupeibao@loongson.cn>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://lore.kernel.org/r/20221101060218.16453-1-liupeibao@loongson.cn
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/stmicro/stmmac/dwmac-loongson.c