svn commit: r232047 - stable/7/sys/dev/re

Pyun YongHyeon yongari at FreeBSD.org
Thu Feb 23 11:28:20 UTC 2012


Author: yongari
Date: Thu Feb 23 11:28:19 2012
New Revision: 232047
URL: http://svn.freebsd.org/changeset/base/232047

Log:
  MFC r231622:
    For RTL8168/8111D controller, make sure to wake PHY from power down
    mode.  Otherwise, PHY access times out under certain conditions.
  
    Approved by:	re (kib)

Modified:
  stable/7/sys/dev/re/if_re.c
Directory Properties:
  stable/7/sys/   (props changed)
  stable/7/sys/cddl/contrib/opensolaris/   (props changed)
  stable/7/sys/contrib/dev/acpica/   (props changed)
  stable/7/sys/contrib/pf/   (props changed)

Modified: stable/7/sys/dev/re/if_re.c
==============================================================================
--- stable/7/sys/dev/re/if_re.c	Thu Feb 23 11:26:47 2012	(r232046)
+++ stable/7/sys/dev/re/if_re.c	Thu Feb 23 11:28:19 2012	(r232047)
@@ -1434,11 +1434,16 @@ re_attach(device_t dev)
 			sc->rl_flags |= RL_FLAG_MACSLEEP;
 		/* FALLTHROUGH */
 	case RL_HWREV_8168CP:
-	case RL_HWREV_8168D:
 		sc->rl_flags |= RL_FLAG_PHYWAKE | RL_FLAG_PAR |
 		    RL_FLAG_DESCV2 | RL_FLAG_MACSTAT | RL_FLAG_CMDSTOP |
 		    RL_FLAG_AUTOPAD | RL_FLAG_JUMBOV2 | RL_FLAG_WOL_MANLINK;
 		break;
+	case RL_HWREV_8168D:
+		sc->rl_flags |= RL_FLAG_PHYWAKE | RL_FLAG_PHYWAKE_PM |
+		    RL_FLAG_PAR | RL_FLAG_DESCV2 | RL_FLAG_MACSTAT |
+		    RL_FLAG_CMDSTOP | RL_FLAG_AUTOPAD | RL_FLAG_JUMBOV2 |
+		    RL_FLAG_WOL_MANLINK;
+		break;
 	case RL_HWREV_8168DP:
 		sc->rl_flags |= RL_FLAG_PHYWAKE | RL_FLAG_PAR |
 		    RL_FLAG_DESCV2 | RL_FLAG_MACSTAT | RL_FLAG_AUTOPAD |


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