aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/usb/usb_request.c
diff options
context:
space:
mode:
authorAndrew Thompson <thompsa@FreeBSD.org>2009-02-24 03:39:13 +0000
committerAndrew Thompson <thompsa@FreeBSD.org>2009-02-24 03:39:13 +0000
commit4a35cda73150578052b41b9dfe89c08f186b274d (patch)
tree1869f274de96104eda5ee5434a1ef95e7bb49ea5 /sys/dev/usb/usb_request.c
parentbce32d7bc4ed80cc0de92e82b86daddce08071b6 (diff)
downloadsrc-4a35cda73150578052b41b9dfe89c08f186b274d.tar.gz
src-4a35cda73150578052b41b9dfe89c08f186b274d.zip
MFp4 //depot/projects/usb@157853
Clean up old way of polling the USB hardware. The existing polling support was a bit hackish. Submitted by: Hans Petter Selasky
Notes
Notes: svn path=/head/; revision=188983
Diffstat (limited to 'sys/dev/usb/usb_request.c')
-rw-r--r--sys/dev/usb/usb_request.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/sys/dev/usb/usb_request.c b/sys/dev/usb/usb_request.c
index 3d194424ad9f..2626f9ce6e09 100644
--- a/sys/dev/usb/usb_request.c
+++ b/sys/dev/usb/usb_request.c
@@ -201,10 +201,6 @@ tr_setup:
* o USB_SHORT_XFER_OK: allows the data transfer to be shorter than
* specified
*
- * o USB_USE_POLLING: forces the transfer to complete from the
- * current context by polling the interrupt handler. This flag can be
- * used to perform USB transfers after that the kernel has crashed.
- *
* o USB_DELAY_STATUS_STAGE: allows the status stage to be performed
* at a later point in time. This is tunable by the "hw.usb.ss_delay"
* sysctl. This flag is mostly useful for debugging.
@@ -385,12 +381,8 @@ usb2_do_request_flags(struct usb2_device *udev, struct mtx *mtx,
usb2_transfer_start(xfer);
while (usb2_transfer_pending(xfer)) {
- if ((flags & USB_USE_POLLING) || cold) {
- usb2_do_poll(udev->default_xfer, USB_DEFAULT_XFER_MAX);
- } else {
- usb2_cv_wait(udev->default_cv,
- xfer->xroot->xfer_mtx);
- }
+ usb2_cv_wait(udev->default_cv,
+ xfer->xroot->xfer_mtx);
}
err = xfer->error;