PERFORCE change 130109 for review
Hans Petter Selasky
hselasky at FreeBSD.org
Mon Dec 3 11:25:20 PST 2007
http://perforce.freebsd.org/chv.cgi?CH=130109
Change 130109 by hselasky at hselasky_laptop001 on 2007/12/03 19:25:15
The AT91 port did not allocate a config thread for the
OHCI controller. Consequently nothing worked. Fix this.
Affected files ...
.. //depot/projects/usb/src/sys/arm/at91/ohci_atmelarm.c#13 edit
Differences ...
==== //depot/projects/usb/src/sys/arm/at91/ohci_atmelarm.c#13 (text) ====
@@ -113,6 +113,13 @@
strlcpy(sc->sc_ohci.sc_vendor, "Atmel", sizeof(sc->sc_ohci.sc_vendor));
+ err = usbd_config_td_setup(&(sc->sc_ohci.sc_config_td), sc,
+ &(sc->sc_ohci.sc_bus.mtx), NULL, 0, 4);
+ if (err) {
+ device_printf(dev, "could not setup config thread!\n");
+ goto error;
+ }
+
#if (__FreeBSD_version >= 700031)
err = bus_setup_intr(dev, sc->sc_ohci.sc_irq_res, INTR_TYPE_BIO | INTR_MPSAFE,
NULL, (void *)(void *)ohci_interrupt, sc, &(sc->sc_ohci.sc_intr_hdl));
More information about the p4-projects
mailing list