Date: Tue, 5 Aug 2014 06:31:10 +0000 (UTC) From: Hans Petter Selasky <hselasky@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r269563 - head/sys/dev/usb/controller Message-ID: <53e07a2e.5bee.1ee4e2f8@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?53e07a2e.5bee.1ee4e2f8>