summaryrefslogtreecommitdiff
path: root/sys/dev/usb
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2005-10-10 14:20:17 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2005-10-10 14:20:17 +0000
commitc61f6a97a90b945372f2bbb95abbbb2fce0d3833 (patch)
tree74272aae1f2189aa9a4d84af22275ae0806e2901 /sys/dev/usb
parent936de9a6e61cfc4e5fcf477517660eed5e3f2ada (diff)
Don't clear possibly non-existant stall condition while setting up the
pipe. Some devices such as some iPods react badly. Normal devices don't need it. From nathanw via NetBSD. Fixes the 2nd generation iPod mini donated by Ed Wandasiewicz. ok pascoe@
Diffstat (limited to 'sys/dev/usb')
-rw-r--r--sys/dev/usb/usb_subr.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/dev/usb/usb_subr.c b/sys/dev/usb/usb_subr.c
index bcdfbed79a1..ceca07f3608 100644
--- a/sys/dev/usb/usb_subr.c
+++ b/sys/dev/usb/usb_subr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: usb_subr.c,v 1.38 2005/08/01 05:36:49 brad Exp $ */
+/* $OpenBSD: usb_subr.c,v 1.39 2005/10/10 14:20:16 krw Exp $ */
/* $NetBSD: usb_subr.c,v 1.103 2003/01/10 11:19:13 augustss Exp $ */
/* $FreeBSD: src/sys/dev/usb/usb_subr.c,v 1.18 1999/11/17 22:33:47 n_hibma Exp $ */
@@ -819,9 +819,6 @@ usbd_setup_pipe(usbd_device_handle dev, usbd_interface_handle iface,
free(p, M_USB);
return (err);
}
- /* Clear any stall and make sure DATA0 toggle will be used next. */
- if (UE_GET_ADDR(ep->edesc->bEndpointAddress) != USB_CONTROL_ENDPOINT)
- usbd_clear_endpoint_stall(p);
*pipe = p;
return (USBD_NORMAL_COMPLETION);
}