]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Dec 2023 14:17:36 +0000 (15:17 +0100)
commit8eec2dcc4b83a8e85e8b0cdaabd9f118e2d9635e
treee4e2a7b87f61e4fbae915685d960b721fe756f8b
parentabb40550adeb562c97c204330cba9a0c87c1c9e7
stmmac: dwmac-loongson: Make sure MDIO is initialized before use

[ Upstream commit e87d3a1370ce9f04770d789bcf7cce44865d2e8d ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/stmicro/stmmac/dwmac-loongson.c