]> www.infradead.org Git - users/jedix/linux-maple.git/commit
r8169: modify the flow of the hw reset.
authorHayes Wang <hayeswang@realtek.com>
Wed, 6 Jul 2011 07:58:03 +0000 (15:58 +0800)
committerJoe Jin <joe.jin@oracle.com>
Fri, 18 May 2012 02:02:17 +0000 (10:02 +0800)
commitff8795e2a341f4c7f460a31664bc0a387cc29b33
tree6649218f1ad5fde17a2e23320f0ec9b503366b0f
parent3b1f80334f00ce9669d52af5db0ec28971f8bd0d
r8169: modify the flow of the hw reset.

- Disable tx and rx by resetting hw, so replace rtl8169_asic_down
  with rtl8169_hw_reset.
- RxConfig bits 0 ~ 5 have to be cleared before hw reset to avoid
  receiving spurious data.
- Certain chips need to do some checking before reset.
- Remove hw reset which is done before hw_start. It is done in close,
  down or device probe functions.
- Move rtl8169_init_ring_indexes function into rtl_hw_reset function.
  The indexes of tx and rx only need to be zero when the hw resets.

Signed-off-by: Hayes Wang <hayeswang@realtek.com>
Acked-by: Francois Romieu <romieu@fr.zoreil.com>
(cherry picked from commit 92fc43b4159b518f5baae57301f26d770b0834c9)

Signed-off-by: Joe Jin <joe.jin@oracle.com>
drivers/net/r8169.c