]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4965e7857f1c0a56a1b0f652fcb7f6a85c9c41c9
tree9d67ee8ce48d058039fb8f2635481adc2a825041
parentdbdc371039a5e6146dc3aff8235732a6c7c155b4
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