From owner-cvs-all Wed Apr 10 6:22:26 2002 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 3DD3437B400; Wed, 10 Apr 2002 06:22:15 -0700 (PDT) Received: (from n_hibma@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g3ADMF878838; Wed, 10 Apr 2002 06:22:15 -0700 (PDT) (envelope-from n_hibma) Message-Id: <200204101322.g3ADMF878838@freefall.freebsd.org> From: Nick Hibma Date: Wed, 10 Apr 2002 06:22:13 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/dev/usb umass.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 n_hibma 2002/04/10 06:22:13 PDT Modified files: sys/dev/usb umass.c Log: Postpone I/O to the device until attach has finished. This fixes attachment after boot in some cases where the device gets confused if spoken to over two different pipes simultaneously (resulting in TIMEOUT errors on requesting INQUIRY data). This solution is far from perfect, as after umass_attach has returned the USB stack fetches the string descriptors in order for creating the event that is sent to userland. It just makes the chances of collisions less likely. Tested by: Tomas Pluskal Revision Changes Path 1.58 +23 -21 src/sys/dev/usb/umass.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message