Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/usb Don't do the xfer once, wait till it is done. I ...
details: https://anonhg.NetBSD.org/src/rev/cd6a9f4f2710
branches: trunk
changeset: 784044:cd6a9f4f2710
user: christos <christos%NetBSD.org@localhost>
date: Tue Jan 15 23:57:13 2013 +0000
description:
Don't do the xfer once, wait till it is done. I did not find this, someone
else did. Fixes slow devices such as scanners.
diffstat:
sys/dev/usb/usbdi.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 04042ee1d65d -r cd6a9f4f2710 sys/dev/usb/usbdi.c
--- a/sys/dev/usb/usbdi.c Tue Jan 15 23:52:48 2013 +0000
+++ b/sys/dev/usb/usbdi.c Tue Jan 15 23:57:13 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: usbdi.c,v 1.142 2013/01/05 23:34:20 christos Exp $ */
+/* $NetBSD: usbdi.c,v 1.143 2013/01/15 23:57:13 christos Exp $ */
/*
* Copyright (c) 1998, 2012 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: usbdi.c,v 1.142 2013/01/05 23:34:20 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: usbdi.c,v 1.143 2013/01/15 23:57:13 christos Exp $");
#ifdef _KERNEL_OPT
#include "opt_compat_netbsd.h"
@@ -319,7 +319,7 @@
if (err != USBD_IN_PROGRESS)
return (err);
usbd_lock_pipe(pipe);
- if (!xfer->done) {
+ while (!xfer->done) {
if (pipe->device->bus->use_polling)
panic("usbd_transfer: not done");
Home |
Main Index |
Thread Index |
Old Index