From owner-cvs-all Tue Jan 14 15: 7:48 2003 Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6C56F37B401; Tue, 14 Jan 2003 15:07:47 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7235543F85; Tue, 14 Jan 2003 15:07:44 -0800 (PST) (envelope-from joe@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id h0EN7ifh099543; Tue, 14 Jan 2003 15:07:44 -0800 (PST) (envelope-from joe@repoman.freebsd.org) Received: (from joe@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h0EN7i1G099542; Tue, 14 Jan 2003 15:07:44 -0800 (PST) Message-Id: <200301142307.h0EN7i1G099542@repoman.freebsd.org> From: Josef Karthauser Date: Tue, 14 Jan 2003 15:07:44 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/dev/usb usb_subr.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG joe 2003/01/14 15:07:43 PST Modified files: sys/dev/usb usb_subr.c Log: Some USB devices are not prepared to deal with a single byte string descriptor request, which usbd_get_string_desc() uses to get the length of a descriptor. One device for instance returns a full 8 byte long packet instead which confuses the rest of the stack and leads to the USB port being reset. The fix is to instead request two bytes, but not to complain if we only get one. Submitted by: kan MFC after: 3 days Revision Changes Path 1.54 +8 -2 src/sys/dev/usb/usb_subr.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message