svn commit: r269563 - head/sys/dev/usb/controller
Hans Petter Selasky
hselasky at FreeBSD.org
Tue Aug 5 06:31:10 UTC 2014
Author: hselasky
Date: Tue Aug 5 06:31:09 2014
New Revision: 269563
URL: http://svnweb.freebsd.org/changeset/base/269563
Log:
Ensure we catch USB transfers which complete right away.
Modified:
head/sys/dev/usb/controller/saf1761_otg.c
Modified: head/sys/dev/usb/controller/saf1761_otg.c
==============================================================================
--- head/sys/dev/usb/controller/saf1761_otg.c Tue Aug 5 05:00:22 2014 (r269562)
+++ head/sys/dev/usb/controller/saf1761_otg.c Tue Aug 5 06:31:09 2014 (r269563)
@@ -1927,7 +1927,7 @@ saf1761_otg_start_standard_chain(struct
/* poll one time */
saf1761_otg_xfer_do_fifo(sc, xfer);
- if (xfer->td_transfer_cache != NULL) {
+ if (saf1761_otg_xfer_do_complete(sc, xfer) == 0) {
/*
* Only enable the endpoint interrupt when we are
* actually waiting for data, hence we are dealing
@@ -1943,9 +1943,6 @@ saf1761_otg_start_standard_chain(struct
usbd_transfer_timeout_ms(xfer,
&saf1761_otg_timeout, xfer->timeout);
}
- } else {
- /* catch completion, if any */
- saf1761_otg_interrupt_complete_locked(sc);
}
USB_BUS_SPIN_UNLOCK(&sc->sc_bus);
}
More information about the svn-src-head
mailing list