net: ethernet: mediatek: Refine the timing of GDM/PSE setup
authorMarkLee <Mark-MC.Lee@mediatek.com>
Wed, 13 Nov 2019 02:38:43 +0000 (10:38 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 14 Nov 2019 23:13:28 +0000 (15:13 -0800)
commit5ac9eda060c74aaa399d0c3ddd6bc244c8e2de96
treed7ab9e7aeecf3fc5c8ea343782c8cce0e3661701
parent8d3f4a95a626a2e111d5bf9813e71557f5567da3
net: ethernet: mediatek: Refine the timing of GDM/PSE setup

Refine the timing of GDM/PSE setup, move it from mtk_hw_init
to mtk_open. This is recommended by the mt762x HW design to
do GDM/PSE setup only after PDMA has been started.

We exclude mt7628 in mtk_gdm_config function since it is a old IP
and there is no GDM/PSE block on it.

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