From 85105890c208ebca341c64eb6502409227ae3bce Mon Sep 17 00:00:00 2001 From: Josef Karthauser Date: Mon, 9 Dec 2002 01:41:24 +0000 Subject: [PATCH] MFNetBSD: (partial 1.133) - In ohci_close_pipe, wait 1ms after removing an ED to avoid possible race condition. Approved by: re (rwatson) --- sys/dev/usb/ohci.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/dev/usb/ohci.c b/sys/dev/usb/ohci.c index 34a02f345d1..a7db2d570e4 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); }