summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/mediatek/Makefile
diff options
context:
space:
mode:
authorSean Wang2016-09-14 17:13:19 +0200
committerDavid S. Miller2016-09-16 08:22:57 +0200
commit9ea4d311509fc11128a464d86745beeafd575051 (patch)
treee5b2efb26bb04b923bcbc373e5103c5225d6768a /drivers/net/ethernet/mediatek/Makefile
parentnet: ethernet: mediatek: add controlling power domain the ethernet belongs to (diff)
downloadkernel-qcow2-linux-9ea4d311509fc11128a464d86745beeafd575051.tar.gz
kernel-qcow2-linux-9ea4d311509fc11128a464d86745beeafd575051.tar.xz
kernel-qcow2-linux-9ea4d311509fc11128a464d86745beeafd575051.zip
net: ethernet: mediatek: add the whole ethernet reset into the reset process
1) original driver only resets DMA used by descriptor rings which can't guarantee it can recover all various kinds of fatal errors, so the patch tries to reset the underlying hardware resource from scratch on Mediatek SoC required for ethernet running, including power, pin mux control, clock and internal circuits on the ethernet in order to restore into the initial state which the rebooted machine gives. 2) add state variable inside structure mtk_eth to help distinguish mtk_hw_init is called between the initialization during boot time or re-initialization during the reset process. 3) add ge_mode variable inside structure mtk_mac for restoring the interface mode of the current setup for the target MAC. 4) remove __init attribute from mtk_hw_init definition Signed-off-by: Sean Wang <sean.wang@mediatek.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mediatek/Makefile')
0 files changed, 0 insertions, 0 deletions