- ret = usb_get_configuration(dev, 0, buf, sizeof(buf));
- printf("=============\nbuf: 0x%08X\nafter usb_get_configuration(ret: %d):\n", buf, ret);
- hexdump(buf, sizeof(buf));
+ ret = usb_get_desc_config_ext(dev, 0);
+
+ /* select configuration */
+ ret = usb_set_configuration(dev, dev->conf->bConfigurationValue);
+ printf("=============\nusb_set_configuration(ret: %d) %d\n", ret, dev->conf->bConfigurationValue);
+
+ /*
+ udelay(600000);
+
+ printf("=============\ninterfaces: %d\n", dev->conf->bNumInterfaces);
+ u8 i;
+ for(i = 1; i <= dev->conf->bNumInterfaces; i++) {
+ memset(buf, 0, sizeof(buf));
+ ret = usb_get_desc_interface(dev, 1, buf, sizeof(buf));
+ printf("=============\nafter usb_get_desc_interface_%d(ret: %d):\n", i, ret);
+ hexdump(buf, sizeof(buf));
+ }
+ */
+