]> git.baikalelectronics.ru Git - kernel.git/commit
net: ethernet: mediatek: Fix MT7629 missing GMII mode support
authorMarkLee <Mark-MC.Lee@mediatek.com>
Mon, 14 Oct 2019 07:15:17 +0000 (15:15 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 16 Oct 2019 01:03:35 +0000 (18:03 -0700)
commit7ad637d8f4f5c3614fee20ae55ac0a86df427410
tree6e15b6bfa32ca9aff118d9b9a04e927911dbe2c8
parent396bb8a772cc3e8462a427179d8d8912bcaadc55
net: ethernet: mediatek: Fix MT7629 missing GMII mode support

In the original design, mtk_phy_connect function will set ge_mode=1
if phy-mode is GMII(PHY_INTERFACE_MODE_GMII) and then set the correct
ge_mode to ETHSYS_SYSCFG0 register. This logic was broken after apply
mediatek PHYLINK patch(Fixes tag), the new mtk_mac_config function will
not set ge_mode=1 for GMII mode hence the final ETHSYS_SYSCFG0 setting
will be incorrect for mt7629 GMII mode. This patch add the missing logic
back to fix it.

Fixes: fcc7dd9fe410 ("net: ethernet: mediatek: Add basic PHYLINK support")
Signed-off-by: MarkLee <Mark-MC.Lee@mediatek.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mediatek/mtk_eth_soc.c