]> www.infradead.org Git - nvme.git/commit
stmmac: dwmac-loongson: Make sure MDIO is initialized before use
authorYanteng Si <siyanteng@loongson.cn>
Mon, 11 Dec 2023 10:33:11 +0000 (18:33 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 13 Dec 2023 10:57:00 +0000 (10:57 +0000)
commite87d3a1370ce9f04770d789bcf7cce44865d2e8d
tree3b48061f2f4e4556ea8b6eb96ecb77ae963d92be
parentf3f32a356c0d2379d4431364e74f101f8f075ce3
stmmac: dwmac-loongson: Make sure MDIO is initialized before use

Generic code will use mdio. If it is not initialized before use,
the kernel will Oops.

Fixes: 30bba69d7db4 ("stmmac: pci: Add dwmac support for Loongson")
Signed-off-by: Yanteng Si <siyanteng@loongson.cn>
Signed-off-by: Feiyang Chen <chenfeiyang@loongson.cn>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/dwmac-loongson.c