]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: Loongson32: Fix PHY-mode being left unspecified
authorBaikal Electronics <support@baikalelectronics.ru>
Sun, 11 Sep 2022 16:10:09 +0000 (00:10 +0800)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Mon, 19 Sep 2022 14:31:32 +0000 (16:31 +0200)
commit685dbdaa519a0f9b43fabf58e0670721a979b4dd
tree6f4d9529718d47fa313f354709962ab7c8765832
parent8d93594d170a23c4b27ab9a7e73119471248249a
MIPS: Loongson32: Fix PHY-mode being left unspecified

commit 0da4b6760919 ("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: 0da4b6760919 ("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>
arch/mips/loongson32/common/platform.c