From owner-svn-src-all@FreeBSD.ORG Tue Jan 6 16:58:42 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 39DD4106566B for ; Tue, 6 Jan 2009 16:58:42 +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 ADB638FC27 for ; Tue, 6 Jan 2009 16:58:41 +0000 (UTC) (envelope-from stas@FreeBSD.org) Received: from DSPAM-Daemon (localhost [127.0.0.1]) by mx0.deglitch.com (Postfix) with SMTP id 2FF458FC52 for ; Tue, 6 Jan 2009 19:58:40 +0300 (MSK) Received: from orion.SpringDaemons.com (drsun1.dialup.corbina.ru [85.21.245.235]) by mx0.deglitch.com (Postfix) with ESMTPA id 2DFB18FC18; Tue, 6 Jan 2009 19:58:36 +0300 (MSK) Received: from orion (localhost [127.0.0.1]) by orion.SpringDaemons.com (Postfix) with SMTP id CDB90398F3; Tue, 6 Jan 2009 20:01:03 +0300 (MSK) Date: Tue, 6 Jan 2009 20:01:03 +0300 From: Stanislav Sedov To: Hans Petter Selasky Message-Id: <20090106200103.26f2b5a9.stas@FreeBSD.org> In-Reply-To: <200901061751.27394.hselasky@c2i.net> References: <200901040012.n040C2gH040928@svn.freebsd.org> <200901061613.33687.hselasky@c2i.net> <20090106193844.c727cfb7.stas@FreeBSD.org> <200901061751.27394.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 19:58:39 2009 X-DSPAM-Confidence: 0.9899 X-DSPAM-Improbability: 1 in 9809 chance of being spam X-DSPAM-Probability: 0.0000 X-DSPAM-Signature: 49638dbf967001186615895 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 16:58:42 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tue, 6 Jan 2009 17:51:26 +0100 Hans Petter Selasky mentioned: > On Tuesday 06 January 2009, Stanislav Sedov wrote: > > On Tue, 6 Jan 2009 16:13:32 +0100 > > > > Hans Petter Selasky mentioned: > > > Try: > > > > > > usbconfig -u 0 -a 2 set_config 1 > > > > This helps. Now ubsa attaches to the device. But I can't communicate > > with it (no echo even). I see the following messages in the log: > > ubsa_cfg_request:395: device request failed, err=USB_ERR_STALLED (ignored) > > ubsa_cfg_request:395: device request failed, err=USB_ERR_STALLED (ignored) > > ubsa_cfg_request:395: device request failed, err=USB_ERR_STALLED (ignored) > > > > > You can for example add a quirk for this, see "usbconfig -h | grep -i > > > quirk". I know this is not so easy, but if you can make a general rule > > > for when selecting another configuration, I will add it. > > > > Why not let the driver to set the config? > > Because: > > 1) it clashes with USB device side mode, where the config index is received > from Host > > 2) Different device drivers might want different configurations. > > 3) The driver for the active configuration might not be loaded. > I see. > This is interesting: > > bNumConfigurations = 0x0001 > > The device says it only has one configuration! So setting index 1 should not > be allowed. > > Could you try to change the check in the ubsa2.c probe routine to check for > config index 0 instead? > It attaches but doesn't work with the same error message as listed above. > > iInterface = 0x0003 > > When you cannot retrive the strings, I think your device is gone! (Crashed) So at this point the device is effectively detached? Do you have ideas why that might happen. I don't also understand how it may work with config index 1 on old stack if the maximum number of configurations is 1 too... Looks weird. - -- Stanislav Sedov ST4096-RIPE -----BEGIN PGP SIGNATURE----- iEYEARECAAYFAkljjk8ACgkQK/VZk+smlYHhagCdFvM/p9fLTQL5A3manV/wq72h 2hQAniOi0FidMBaVHkcFZybsT832ivtz =HPtC -----END PGP SIGNATURE----- !DSPAM:49638dbf967001186615895!