summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb2/controller/uhci2.c
diff options
context:
space:
mode:
authorthompsa <thompsa@FreeBSD.org>2009-02-07 06:27:16 +0000
committerthompsa <thompsa@FreeBSD.org>2009-02-07 06:27:16 +0000
commit804c089571c9cb5b2093dd6946568ba530aafc77 (patch)
tree933e87b179c55118b7658f1bfa91ad7260a2f610 /sys/dev/usb2/controller/uhci2.c
parente4a9234f1ff1c789915ac388c883615a078fcde6 (diff)
downloadFreeBSD-src-804c089571c9cb5b2093dd6946568ba530aafc77.zip
FreeBSD-src-804c089571c9cb5b2093dd6946568ba530aafc77.tar.gz
Dont hold the lock over the controller init, we are still attaching.
Diffstat (limited to 'sys/dev/usb2/controller/uhci2.c')
-rw-r--r--sys/dev/usb2/controller/uhci2.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/dev/usb2/controller/uhci2.c b/sys/dev/usb2/controller/uhci2.c
index ef9bce2..107aef4 100644
--- a/sys/dev/usb2/controller/uhci2.c
+++ b/sys/dev/usb2/controller/uhci2.c
@@ -406,8 +406,6 @@ uhci_init(uhci_softc_t *sc)
uint16_t x;
uint16_t y;
- USB_BUS_LOCK(&sc->sc_bus);
-
DPRINTF("start\n");
#if USB_DEBUG
@@ -597,12 +595,12 @@ uhci_init(uhci_softc_t *sc)
/* set up the bus struct */
sc->sc_bus.methods = &uhci_bus_methods;
+ USB_BUS_LOCK(&sc->sc_bus);
/* reset the controller */
uhci_reset(sc);
/* start the controller */
uhci_start(sc);
-
USB_BUS_UNLOCK(&sc->sc_bus);
/* catch lost interrupts */
OpenPOWER on IntegriCloud