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

Pyun YongHyeon yongari at FreeBSD.org
Wed Feb 15 03:49:50 UTC 2012


Author: yongari
Date: Wed Feb 15 03:49:50 2012
New Revision: 231732
URL: http://svn.freebsd.org/changeset/base/231732

Log:
  MFC r230336:
    Fix a logic error which resulted in putting PHY into sleep when WOL
    is active.  If WOL is active driver should not put PHY into sleep.
    This change makes WOL work on RTL8168E.

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/boot/   (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/e1000/   (props changed)

Modified: stable/8/sys/dev/re/if_re.c
==============================================================================
--- stable/8/sys/dev/re/if_re.c	Wed Feb 15 03:48:22 2012	(r231731)
+++ stable/8/sys/dev/re/if_re.c	Wed Feb 15 03:49:50 2012	(r231732)
@@ -3765,7 +3765,7 @@ re_setwol(struct rl_softc *sc)
 	/* Config register write done. */
 	CSR_WRITE_1(sc, RL_EECMD, RL_EEMODE_OFF);
 
-	if ((ifp->if_capenable & IFCAP_WOL) != 0 &&
+	if ((ifp->if_capenable & IFCAP_WOL) == 0 &&
 	    (sc->rl_flags & RL_FLAG_PHYWAKE_PM) != 0)
 		CSR_WRITE_1(sc, RL_PMCH, CSR_READ_1(sc, RL_PMCH) & ~0x80);
 	/*


More information about the svn-src-stable-8 mailing list