summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/usb_subr.c
diff options
context:
space:
mode:
authorkrw <krw@openbsd.org>2005-10-10 14:20:16 +0000
committerkrw <krw@openbsd.org>2005-10-10 14:20:16 +0000
commit6d15aa3040205f16b8b794568a9774c3ddbd17b0 (patch)
treefbfcddbeae646291f17d6ccbd53261aee2d9197f /sys/dev/usb/usb_subr.c
parentuse rd_next in rcs_getrev() when patching to get to a revision (diff)
downloadwireguard-openbsd-6d15aa3040205f16b8b794568a9774c3ddbd17b0.tar.xz
wireguard-openbsd-6d15aa3040205f16b8b794568a9774c3ddbd17b0.zip
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/usb_subr.c')
-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);
}