summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorjoe <joe@FreeBSD.org>2002-12-09 01:41:24 +0000
committerjoe <joe@FreeBSD.org>2002-12-09 01:41:24 +0000
commit4e69cf34a4f45e0b5c740dd1600038beb7f74860 (patch)
tree9aa26a7bbf69eaaccc45f9b590c03c9ccf7a5a8a /sys
parent0732397245dc490cc9572166856faa10d413ac11 (diff)
downloadFreeBSD-src-4e69cf34a4f45e0b5c740dd1600038beb7f74860.zip
FreeBSD-src-4e69cf34a4f45e0b5c740dd1600038beb7f74860.tar.gz
MFNetBSD: (partial 1.133)
- In ohci_close_pipe, wait 1ms after removing an ED to avoid possible race condition. Approved by: re (rwatson)
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/usb/ohci.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/usb/ohci.c b/sys/dev/usb/ohci.c
index 34a02f3..a7db2d5 100644
--- a/sys/dev/usb/ohci.c
+++ b/sys/dev/usb/ohci.c
@@ -2175,6 +2175,8 @@ ohci_close_pipe(usbd_pipe_handle pipe, ohci_soft_ed_t *head)
}
#endif
ohci_rem_ed(sed, head);
+ /* Make sure the host controller is not touching this ED */
+ usb_delay_ms(&sc->sc_bus, 1);
splx(s);
ohci_free_sed(sc, opipe->sed);
}
OpenPOWER on IntegriCloud