diff options
| author | Adrian Chadd <adrian@FreeBSD.org> | 2014-08-21 00:57:32 +0000 |
|---|---|---|
| committer | Adrian Chadd <adrian@FreeBSD.org> | 2014-08-21 00:57:32 +0000 |
| commit | f8cdacdd185481cc34c8241acf12e92eb71bca44 (patch) | |
| tree | 0531fc05c9560bd9344fc2e62873d4c1dabb8f7b /sys/dev/ep | |
| parent | 9721a22d4a4017e72cb3050faa61277f5095c15d (diff) | |
Notes
Diffstat (limited to 'sys/dev/ep')
| -rw-r--r-- | sys/dev/ep/if_ep.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/dev/ep/if_ep.c b/sys/dev/ep/if_ep.c index 863c545fae76..74c6a865b0ab 100644 --- a/sys/dev/ep/if_ep.c +++ b/sys/dev/ep/if_ep.c @@ -343,7 +343,9 @@ ep_attach(struct ep_softc *sc) EP_FSET(sc, F_RX_FIRST); sc->top = sc->mcur = 0; + EP_LOCK(sc); epstop(sc); + EP_UNLOCK(sc); return (0); } @@ -1000,6 +1002,9 @@ epwatchdog(struct ep_softc *sc) static void epstop(struct ep_softc *sc) { + + EP_ASSERT_LOCKED(sc); + CSR_WRITE_2(sc, EP_COMMAND, RX_DISABLE); CSR_WRITE_2(sc, EP_COMMAND, RX_DISCARD_TOP_PACK); EP_BUSY_WAIT(sc); |
