El día Tuesday, April 17, 2012 a las 05:36:56PM +0200, Hans Petter Selasky 
escribió:

> 
> Could you check if the libusb handle gets closed after reset?

The code part lookslike this:

                                printf("Resetting USB...\n");
                                ret = libusb_reset_device(_rt_dif.dev_handle);
                                if (ret < 0 && ret != LIBUSB_ERROR_NOT_FOUND)
                                        fprintf(stderr, "error resetting
"
                                                "after detach\n");
                                fprintf(stderr, "doing
libusb_set_configuration(dif->dev_handle, 1)\n");
                                libusb_set_configuration(dif->dev_handle,
1);
                                sleep(2);
                                fprintf(stderr, "dif->dev_handle %08x\n", 
dif->dev_handle);

for reset it uses _rt_dif.dev_handle, and you made me add an operation
with dif->dev_handle, is this correct?

anyway:

Resetting USB...
doing libusb_set_configuration(dif->dev_handle, 1)
dif->dev_handle 28449f00
Opening USB Device...
No such Alternate Setting: "rootfs"

Thanks

        matthias

-- 
Matthias Apitz
e <g...@unixarea.de> - w http://www.unixarea.de/
UNIX since V7 on PDP-11, UNIX on mainframe since ESER 1055 (IBM /370)
UNIX on x86 since SVR4.2 UnixWare 2.1.2, FreeBSD since 2.2.5
_______________________________________________
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