MIPS: Loongson32: Fix PHY-mode being left unspecified
stable inclusion from stable-v5.10.146 commit 21b535fe5ecb10c872642013355433432bac88d6 category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I6D0VX Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=21b535fe5ecb10c872642013355433432bac88d6 -------------------------------- [ Upstream commit e9f3f8f4 ] commit 0060c878 ("net: stmmac: implement support for passive mode converters via dt") has changed the plat->interface field semantics from containing the PHY-mode to specifying the MAC-PCS interface mode. Due to that the loongson32 platform code will leave the phylink interface uninitialized with the PHY-mode intended by the means of the actual platform setup. The commit-author most likely has just missed the arch-specific code to fix. Let's mend the Loongson32 platform code then by assigning the PHY-mode to the phy_interface field of the STMMAC platform data. Fixes: 0060c878 ("net: stmmac: implement support for passive mode converters via dt") Signed-off-by:Serge Semin <Sergey.Semin@baikalelectronics.ru> Signed-off-by:
Keguang Zhang <keguang.zhang@gmail.com> Tested-by:
Keguang Zhang <keguang.zhang@gmail.com> Signed-off-by:
Thomas Bogendoerfer <tsbogend@alpha.franken.de> Signed-off-by:
Sasha Levin <sashal@kernel.org> Signed-off-by:
Jialin Zhang <zhangjialin11@huawei.com> Reviewed-by:
Zheng Zengkai <zhengzengkai@huawei.com>
Loading
Please sign in to comment