Date: Tue, 6 Jan 2009 18:01:23 +0300 From: Stanislav Sedov <stas@FreeBSD.org> To: Hans Petter Selasky <hselasky@c2i.net> Cc: Stanislav Sedov <stas@freebsd.org>, svn-src-head@freebsd.org, svn-src-all@freebsd.org, Alfred Perlstein <alfred@freebsd.org>, 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... 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>
next in thread | previous in thread | raw e-mail | index | archive | help
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Tue, 6 Jan 2009 12:15:37 +0100
Hans Petter Selasky <hselasky@c2i.net> 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: <AnyDATA CDMA Products AnyDATA Corporation> 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!
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090106180123.d032657d.stas>
