summaryrefslogtreecommitdiff
path: root/sys/dev/usb/uhci.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2004-07-11 05:29:17 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2004-07-11 05:29:17 +0000
commit5d2ea2ca9c20e17a241f4b7adc638717d1794789 (patch)
treed40db2eedb53ab279c4b6b79c9744fb1e2590438 /sys/dev/usb/uhci.c
parent21f733ed809d7a631b1e242aa32a1892f720892f (diff)
from netbsd via loki@animata.net
uhub.c revision 1.65, ohci.c revision 1.146, uhci.c revision 1.177 Use the correct wValue to get hub desriptors. Also, make wValue checks of root hub codes less strict.
Diffstat (limited to 'sys/dev/usb/uhci.c')
-rw-r--r--sys/dev/usb/uhci.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/usb/uhci.c b/sys/dev/usb/uhci.c
index 32b36c0f26e..5cca24f927a 100644
--- a/sys/dev/usb/uhci.c
+++ b/sys/dev/usb/uhci.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uhci.c,v 1.31 2004/05/04 16:59:32 grange Exp $ */
+/* $OpenBSD: uhci.c,v 1.32 2004/07/11 05:29:16 deraadt Exp $ */
/* $NetBSD: uhci.c,v 1.172 2003/02/23 04:19:26 simonb Exp $ */
/* $FreeBSD: src/sys/dev/usb/uhci.c,v 1.33 1999/11/17 22:33:41 n_hibma Exp $ */
@@ -3304,7 +3304,7 @@ uhci_root_ctrl_start(usbd_xfer_handle xfer)
}
break;
case C(UR_GET_DESCRIPTOR, UT_READ_CLASS_DEVICE):
- if (value != 0) {
+ if ((value & 0xff) != 0) {
err = USBD_IOERROR;
goto ret;
}