Module Name: src Committed By: drochner Date: Tue Jul 27 16:15:30 UTC 2010
Modified Files: src/sys/dev/usb: usb_subr.c Log Message: do a port reset between initial device descriptor fetch and address assignment - not required by the spec but Windows does so, fixes a problem with a Sun Keyboard reported by Jonathan Perkin, verified by Jonathan Kollasch To generate a diff of this commit: cvs rdiff -u -r1.173 -r1.174 src/sys/dev/usb/usb_subr.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/usb/usb_subr.c diff -u src/sys/dev/usb/usb_subr.c:1.173 src/sys/dev/usb/usb_subr.c:1.174 --- src/sys/dev/usb/usb_subr.c:1.173 Sun Jul 25 13:19:27 2010 +++ src/sys/dev/usb/usb_subr.c Tue Jul 27 16:15:30 2010 @@ -1,4 +1,4 @@ -/* $NetBSD: usb_subr.c,v 1.173 2010/07/25 13:19:27 pgoyette Exp $ */ +/* $NetBSD: usb_subr.c,v 1.174 2010/07/27 16:15:30 drochner Exp $ */ /* $FreeBSD: src/sys/dev/usb/usb_subr.c,v 1.18 1999/11/17 22:33:47 n_hibma Exp $ */ /* @@ -32,7 +32,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: usb_subr.c,v 1.173 2010/07/25 13:19:27 pgoyette Exp $"); +__KERNEL_RCSID(0, "$NetBSD: usb_subr.c,v 1.174 2010/07/27 16:15:30 drochner Exp $"); #include "opt_compat_netbsd.h" #include "opt_usbverbose.h" @@ -1159,6 +1159,10 @@ return (err); } + /* Windows resets the port here, do likewise */ + if (up->parent) + usbd_reset_port(up->parent, port, &ps); + if (speed == USB_SPEED_HIGH) { /* Max packet size must be 64 (sec 5.5.3). */ if (dd->bMaxPacketSize != USB_2_MAX_CTRL_PACKET) {