net: ethernet: mediatek: refactoring mtk_hw_init to be reused
authorSean Wang <sean.wang@mediatek.com>
Wed, 14 Sep 2016 15:13:15 +0000 (23:13 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 16 Sep 2016 06:22:56 +0000 (02:22 -0400)
commit85574dbf9d12b393448334897acf13f567bac8f9
tree9d67ee8ce48d058039fb8f2635481adc2a825041
parent364eac0c8b996633aa822b65476ae002a4aacd20
net: ethernet: mediatek: refactoring mtk_hw_init to be reused

the existing mtk_hw_init includes hardware and software
initialization inside so that it is slightly hard to reuse
them for the process of the reset recovery, so some splitting
is made here for keeping hardware initializing relevant thing
and the else such as IRQ registration and MDIO initialization
what are all about to the interface of core driver moved to the
other proper place because they have no needs to register IRQ and
re-initialize structure again during the reset process.

Signed-off-by: Sean Wang <sean.wang@mediatek.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mediatek/mtk_eth_soc.c