On Saturday 09 July 2011 22:36:53 Torfinn Ingolfsen wrote:
> On Sat, 09 Jul 2011 22:29:22 +0200
> 
> Hans Petter Selasky <hsela...@c2i.net> wrote:
> > Could you try to reset it?
> > 
> > usbconfig -d X.Y reset
> 
> root@kg-v7# usbconfig -d 0.3
> ugen0.3: <product 0x0011 vendor 0x0922> at usbus0, cfg=255 md=HOST spd=LOW
> (1.5Mbps) pwr=ON root@kg-v7# usbconfig -d 0.3 reset
> root@kg-v7# usbconfig -d 0.3

You could try to change in /sys/dev/usb/usb_device.c:

        /* Set the actual configuration value. */
        err = usbd_req_set_config(udev, NULL, cdp->bConfigurationValue);
        if (err) {
                goto done;
        }

Into:

        /* Set the actual configuration value. */
        err = usbd_req_set_config(udev, NULL, cdp->bConfigurationValue);
        if (err && 0) {
                goto done;
        }
        err = 0;

I think the device has received the set config, though there appears to be 
something wrong about the STALL part, which I think we can safely ignore.

--HPS
_______________________________________________
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"

Reply via email to