net: stmmac: The netif_device_attach() should be called after napi_enable()
authorDavid Wu <david.wu@rock-chips.com>
Fri, 28 Apr 2017 09:41:43 +0000 (17:41 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Tue, 9 May 2017 12:10:19 +0000 (20:10 +0800)
commitb9ca500f210b5d2998de89c24621cb07c0dc1915
tree3efb78ecb6dac4ac4d4c91d8fd6711ac5a7c9032
parentddb9616d290ec5afc21753b39440d997c17ec2fe
net: stmmac: The netif_device_attach() should be called after napi_enable()

If the netif_device_attach() is called earlier, the state of dev_queue is
waked, txtimer might be modified, and the txtimer is added at same time.
It might make run_timer_softirq crashed, because the timer is be detached
twice together.

Change-Id: I31dde4e940bddcc36372ca1f4a8313c0389d4e6b
Signed-off-by: David Wu <david.wu@rock-chips.com>
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c