From owner-svn-src-all@FreeBSD.ORG Tue Jan 6 14:59:06 2009 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D3C2A1065670 for ; Tue, 6 Jan 2009 14:59:06 +0000 (UTC) (envelope-from stas@FreeBSD.org) Received: from mx0.deglitch.com (backbone.deglitch.com [IPv6:2001:16d8:fffb:4::abba]) by mx1.freebsd.org (Postfix) with ESMTP id 7F8D88FC24 for ; Tue, 6 Jan 2009 14:59:06 +0000 (UTC) (envelope-from stas@FreeBSD.org) Received: from DSPAM-Daemon (localhost [127.0.0.1]) by mx0.deglitch.com (Postfix) with SMTP id 8A7CE8FC52 for ; Tue, 6 Jan 2009 17:59:05 +0300 (MSK) Received: from orion.SpringDaemons.com (drsun1.dialup.corbina.ru [85.21.245.235]) by mx0.deglitch.com (Postfix) with ESMTPA id A612C8FC18; Tue, 6 Jan 2009 17:59:02 +0300 (MSK) Received: from orion (localhost [127.0.0.1]) by orion.SpringDaemons.com (Postfix) with SMTP id B36DC398F3; Tue, 6 Jan 2009 18:01:29 +0300 (MSK) Date: Tue, 6 Jan 2009 18:01:23 +0300 From: Stanislav Sedov To: Hans Petter Selasky Message-Id: <20090106180123.d032657d.stas@FreeBSD.org> In-Reply-To: <200901061215.37947.hselasky@c2i.net> References: <200901040012.n040C2gH040928@svn.freebsd.org> <20090106124303.d8bab0de.stas@FreeBSD.org> <20090106133507.1e2bc2d2.stas@FreeBSD.org> <200901061215.37947.hselasky@c2i.net> Organization: The FreeBSD Project X-XMPP: ssedov@jabber.ru X-Voice: +7 916 849 20 23 X-PGP-Fingerprint: F21E D6CC 5626 9609 6CE2 A385 2BF5 5993 EB26 9581 X-Mailer: carrier-pigeon Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-DSPAM-Result: Innocent X-DSPAM-Processed: Tue Jan 6 17:59:05 2009 X-DSPAM-Confidence: 0.9899 X-DSPAM-Improbability: 1 in 9809 chance of being spam X-DSPAM-Probability: 0.0000 X-DSPAM-Signature: 496371b9967007708318776 Cc: Stanislav Sedov , svn-src-head@freebsd.org, svn-src-all@freebsd.org, Alfred Perlstein , src-committers@freebsd.org Subject: Re: svn commit: r186730 - in head: lib/libusb20 sys/dev/usb2/controller sys/dev/usb2/core sys/dev/usb2/ethernet sys/dev/usb2/image sys/dev/usb2/include sys/dev/usb2/serial sys/dev/usb2/sound sys/dev/us... X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Jan 2009 14:59:07 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tue, 6 Jan 2009 12:15:37 +0100 Hans Petter Selasky mentioned: > As long as your device shows up like "ugen0.2" it is detected properly and > will function. Check with "usbconfig". > > Suggestions: > > usbconfig -u 0 -a 2 reset > usbconfig -u 0 -a 2 dump_device_desc > This doesn't change anything, the device fails to attach. > The failures indicate that the firmware on your USB device is not reponding > correctly at the time the set address command is being sent to the device. > Do you have some ideas how this situation could be handled in the new stack? > As you can see the new USB stack will try to re-enumerate the device one time. > > Have you loaded the correct driver for your serial device? > > kldload usb2_serial_bsa > Yes, this module is loaded and I can see it enters the probe routine. But as the configuration index doesn't match what the driver expects it fails to probe. Driver checks for configuration idx 1, but I see this device on idx 0. ugen0.2: at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON The old stack didn't checked for specific configuration index, but tryed to select the appropriate one in the attach routine. /* Move the device into the configured state. */ err = usbd_set_config_index(dev, UBSA_CONFIG_INDEX, 1); What is the reason you have reworked this? Should this be changed to be handled like in the old driver? Thanks! - -- Stanislav Sedov ST4096-RIPE -----BEGIN PGP SIGNATURE----- iEYEARECAAYFAkljckkACgkQK/VZk+smlYER6ACfSI3SQ9FwEr/6vXEe/4G0CKDw 4SEAnR3FsMBGxyDLnYpnVVigbvFbX6tj =dW5S -----END PGP SIGNATURE----- !DSPAM:496371b9967007708318776!