diff options
author | yongari <yongari@FreeBSD.org> | 2009-11-19 23:14:40 +0000 |
---|---|---|
committer | yongari <yongari@FreeBSD.org> | 2009-11-19 23:14:40 +0000 |
commit | 3bd320462512351a9e96bcfd1ea3836a9c156f6f (patch) | |
tree | 48a10b63e937796e1da16e1bceec26c418461aad /sys/dev | |
parent | b3aef05c86fc82ae0918fdc48e30725bddd83da6 (diff) | |
download | FreeBSD-src-3bd320462512351a9e96bcfd1ea3836a9c156f6f.zip FreeBSD-src-3bd320462512351a9e96bcfd1ea3836a9c156f6f.tar.gz |
Move interface reinitialization down after disabling WOL in resume
path.
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/re/if_re.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/dev/re/if_re.c b/sys/dev/re/if_re.c index ed2b449..aeb9cf2 100644 --- a/sys/dev/re/if_re.c +++ b/sys/dev/re/if_re.c @@ -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); |