From 2d1aea3355b8b7844c7205013513a5506d2f62ca Mon Sep 17 00:00:00 2001 From: Christian Weisgerber Date: Sat, 7 Aug 2010 23:56:43 +0000 Subject: Revert 1.123. Hangs RTL8168C/8111C (0x3c00) after ifconfig re0 up ifconfig re0 down dhclient re0 ok krw@, deraadt@ --- sys/dev/ic/re.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'sys') diff --git a/sys/dev/ic/re.c b/sys/dev/ic/re.c index 42cd3da7987..0c15ff612f6 100644 --- a/sys/dev/ic/re.c +++ b/sys/dev/ic/re.c @@ -1,4 +1,4 @@ -/* $OpenBSD: re.c,v 1.125 2010/08/07 03:50:01 krw Exp $ */ +/* $OpenBSD: re.c,v 1.126 2010/08/07 23:56:42 naddy Exp $ */ /* $FreeBSD: if_re.c,v 1.31 2004/09/04 07:54:05 ru Exp $ */ /* * Copyright (c) 1997, 1998-2003 @@ -2178,12 +2178,7 @@ re_stop(struct ifnet *ifp) mii_down(&sc->sc_mii); - if (sc->rl_flags & RL_FLAG_CMDSTOP) - CSR_WRITE_1(sc, RL_COMMAND, RL_CMD_STOPREQ | RL_CMD_TX_ENB | - RL_CMD_RX_ENB); - else - CSR_WRITE_1(sc, RL_COMMAND, 0x00); - DELAY(1000); + CSR_WRITE_1(sc, RL_COMMAND, 0x00); CSR_WRITE_2(sc, RL_IMR, 0x0000); CSR_WRITE_2(sc, RL_ISR, 0xFFFF); -- cgit v1.2.3