Patchwork [net-next,v5,3/5] r8169: fix the reset setting for 8111evl

login
register
mail settings
Submitter hayeswang
Date Sept. 6, 2011, 8:55 a.m.
Message ID <1315299318-1547-3-git-send-email-hayeswang@realtek.com>
Download mbox | patch
Permalink /patch/113510/
State Awaiting Upstream
Delegated to: David Miller
Headers show

Comments

hayeswang - Sept. 6, 2011, 8:55 a.m.
rtl8111evl should stop any TLP requirement before resetting by
enabling register 0x37 bit 7.

Signed-off-by: Hayes Wang <hayeswang@realtek.com>
---
 drivers/net/ethernet/realtek/r8169.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

Patch

diff --git a/drivers/net/ethernet/realtek/r8169.c b/drivers/net/ethernet/realtek/r8169.c
index db5ab2c..175c769 100644
--- a/drivers/net/ethernet/realtek/r8169.c
+++ b/drivers/net/ethernet/realtek/r8169.c
@@ -3997,6 +3997,7 @@  static void rtl8169_hw_reset(struct rtl8169_private *tp)
 		while (RTL_R8(TxPoll) & NPQ)
 			udelay(20);
 	} else if (tp->mac_version == RTL_GIGA_MAC_VER_34) {
+		RTL_W8(ChipCmd, RTL_R8(ChipCmd) | StopReq);
 		while (!(RTL_R32(TxConfig) & TXCFG_EMPTY))
 			udelay(100);
 	} else {