Proposed patch to ulpt.c
M. Warner Losh
imp at bsdimp.com
Fri Jul 8 22:18:51 GMT 2005
Ooops. In my last message, there's an extra chunk in the patch, left
over from debugging. Please try this one instead.
Warner
-------------- next part --------------
Index: ulpt.c
===================================================================
RCS file: /home/ncvs/src/sys/dev/usb/ulpt.c,v
retrieving revision 1.66
diff -u -r1.66 ulpt.c
--- ulpt.c 6 Jan 2005 01:43:28 -0000 1.66
+++ ulpt.c 8 Jul 2005 22:12:33 -0000
@@ -543,28 +544,6 @@
}
}
- for (spin = 0; (ulpt_status(sc) & LPS_SELECT) == 0; spin += STEP) {
- DPRINTF(("ulpt_open: waiting a while\n"));
- if (spin >= TIMEOUT) {
- error = EBUSY;
- sc->sc_state = 0;
- goto done;
- }
-
- /* wait 1/4 second, give up if we get a signal */
- error = tsleep(sc, LPTPRI | PCATCH, "ulptop", STEP);
- if (error != EWOULDBLOCK) {
- sc->sc_state = 0;
- goto done;
- }
-
- if (sc->sc_dying) {
- error = ENXIO;
- sc->sc_state = 0;
- goto done;
- }
- }
-
err = usbd_open_pipe(sc->sc_iface, sc->sc_out, 0, &sc->sc_out_pipe);
if (err) {
error = EIO;
More information about the freebsd-usb
mailing list