svn commit: r200074 - stable/8/sys/dev/re

Pyun YongHyeon yongari at FreeBSD.org
Thu Dec 3 18:48:33 UTC 2009


Author: yongari
Date: Thu Dec  3 18:48:32 2009
New Revision: 200074
URL: http://svn.freebsd.org/changeset/base/200074

Log:
  MFC r199565:
    Move interface reinitialization down after disabling WOL in resume
    path.

Modified:
  stable/8/sys/dev/re/if_re.c
Directory Properties:
  stable/8/sys/   (props changed)
  stable/8/sys/amd64/include/xen/   (props changed)
  stable/8/sys/cddl/contrib/opensolaris/   (props changed)
  stable/8/sys/contrib/dev/acpica/   (props changed)
  stable/8/sys/contrib/pf/   (props changed)
  stable/8/sys/dev/xen/xenpci/   (props changed)

Modified: stable/8/sys/dev/re/if_re.c
==============================================================================
--- stable/8/sys/dev/re/if_re.c	Thu Dec  3 18:45:01 2009	(r200073)
+++ stable/8/sys/dev/re/if_re.c	Thu Dec  3 18:48:32 2009	(r200074)
@@ -3023,15 +3023,16 @@ re_resume(device_t dev)
 			    CSR_READ_1(sc, RL_GPIO) | 0x01);
 	}
 
-	/* reinitialize interface if necessary */
-	if (ifp->if_flags & IFF_UP)
-		re_init_locked(sc);
-
 	/*
 	 * Clear WOL matching such that normal Rx filtering
 	 * wouldn't interfere with WOL patterns.
 	 */
 	re_clrwol(sc);
+
+	/* reinitialize interface if necessary */
+	if (ifp->if_flags & IFF_UP)
+		re_init_locked(sc);
+
 	sc->suspended = 0;
 	RL_UNLOCK(sc);
 


More information about the svn-src-stable mailing list