Skip to content

Commit

Permalink
r8169: fix the reset setting for 8111evl
Browse files Browse the repository at this point in the history
rtl8111evl should stop any TLP requirement before resetting by
enabling register 0x37 bit 7.

Signed-off-by: Hayes Wang <hayeswang@realtek.com>
  • Loading branch information
Hayes Wang authored and Francois Romieu committed Sep 17, 2011
1 parent 8e2ec63 commit c2b0c1e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/net/r8169.c
Original file line number Diff line number Diff line change
Expand Up @@ -3988,6 +3988,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 {
Expand Down

0 comments on commit c2b0c1e

Please sign in to comment.