FreeBSD Bugzilla – Attachment 134652 Details for
Bug 179342
Freebsd 10.0-current USB 3.0 not working (xhci_do_comand: Command timeout!)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
xhci_timer.diff
xhci_timer.diff (text/plain; charset=us-ascii), 1.19 KB, created by
miguelmclara
on 2013-07-07 00:07:18 UTC
(
hide
)
Description:
xhci_timer.diff
Filename:
MIME Type:
Creator:
miguelmclara
Created:
2013-07-07 00:07:18 UTC
Size:
1.19 KB
patch
obsolete
>=== xhci.h >================================================================== >--- xhci.h (revision 252698) >+++ xhci.h (local) >@@ -438,6 +438,8 @@ > /* configure message */ > struct usb_bus_msg sc_config_msg[2]; > >+ struct usb_callout sc_callout; >+ > union xhci_hub_desc sc_hub_desc; > > struct cv sc_cmd_cv; >=== xhci_pci.c >================================================================== >--- xhci_pci.c (revision 252698) >+++ xhci_pci.c (local) >@@ -142,6 +142,16 @@ > usb_callout_reset(&sc->sc_callout, 1, (void *)&xhci_interrupt_poll, sc); > } > >+static void >+xhci_timer(void *_sc) >+{ >+ struct xhci_softc *sc = _sc; >+ USB_BUS_UNLOCK(&sc->sc_bus); >+ xhci_interrupt(sc); >+ USB_BUS_LOCK(&sc->sc_bus); >+ usb_callout_reset(&sc->sc_callout, 1, (void *)&xhci_timer, sc); >+} >+ > static int > xhci_pci_attach(device_t self) > { >@@ -186,6 +196,12 @@ > > sprintf(sc->sc_vendor, "0x%04x", pci_get_vendor(self)); > >+ usb_callout_init_mtx(&sc->sc_callout, &sc->sc_bus.bus_mtx, 0); >+ >+ USB_BUS_LOCK(&sc->sc_bus); >+ xhci_timer(sc); >+ USB_BUS_UNLOCK(&sc->sc_bus); >+ > if (sc->sc_irq_res != NULL) { > err = bus_setup_intr(self, sc->sc_irq_res, INTR_TYPE_BIO | INTR_MPSAFE, > NULL, (driver_intr_t *)xhci_interrupt, sc, &sc->sc_intr_hdl);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 179342
:
134651
| 134652