r8169: adjust the flow of hw_start
authorhayeswang <hayeswang@realtek.com>
Mon, 1 Apr 2013 22:23:41 +0000 (22:23 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 7 Apr 2013 20:44:13 +0000 (16:44 -0400)
commit1a9646497b163a8b9da5e70008d809dc91b32855
treec48323e5574c08dbcd3755489c24e8cc73520d05
parent57538c4a89506c333b480ff5bdfcd4f16f78ccdf
r8169: adjust the flow of hw_start

The suggestion as following:
- initial settings or default settings
- rtl_hw_start_xxx. rtl_hw_start_xxx may change some default settings.
- enable tx/rx. This has to be after the above two steps.
- rtl_set_rx_mode. AcceptXXXs have to be enabled after enabling tx/rx.

Signed-off-by: Hayes Wang <hayeswang@realtek.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/realtek/r8169.c