diff options
author | Pyun YongHyeon <yongari@FreeBSD.org> | 2012-02-14 00:54:40 +0000 |
---|---|---|
committer | Pyun YongHyeon <yongari@FreeBSD.org> | 2012-02-14 00:54:40 +0000 |
commit | df2dc2b3aea0991b37135fcc4662c2fd03849933 (patch) | |
tree | c9b741fccb26d77315ba989cc4f0e4c4ebd06b25 /sys/dev | |
parent | bb631bf94dcac1dff864018bcf5865451cc37b58 (diff) | |
download | src-df2dc2b3aea0991b37135fcc4662c2fd03849933.tar.gz src-df2dc2b3aea0991b37135fcc4662c2fd03849933.zip |
For RTL8168/8111D controller, make sure to wake PHY from power down
mode. Otherwise, PHY access times out under certain conditions.
Notes
Notes:
svn path=/head/; revision=231622
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/re/if_re.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/dev/re/if_re.c b/sys/dev/re/if_re.c index 0142308ec0cc..916d6ea172ca 100644 --- a/sys/dev/re/if_re.c +++ b/sys/dev/re/if_re.c @@ -1433,11 +1433,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 | |