diff options
author | thompsa <thompsa@FreeBSD.org> | 2009-02-07 06:27:16 +0000 |
---|---|---|
committer | thompsa <thompsa@FreeBSD.org> | 2009-02-07 06:27:16 +0000 |
commit | 804c089571c9cb5b2093dd6946568ba530aafc77 (patch) | |
tree | 933e87b179c55118b7658f1bfa91ad7260a2f610 /sys/dev/usb2/controller/uhci2.c | |
parent | e4a9234f1ff1c789915ac388c883615a078fcde6 (diff) | |
download | FreeBSD-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.c | 4 |
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 */ |