control_quirk seems to be evil and our buf must be "80 06 00 01 00 00 40 00" for...
[ppcskel.git] / usb / core / core.c
index d9ede11aa8de766aeb2e58ad341c14e69bd22ab7..95b8091e4a175849857bd6dd7118530c60c6d08e 100644 (file)
@@ -116,7 +116,8 @@ usb_device *usb_add_device()
         * wIndex = 0
         * wLength = 8 (in Bytes!?)
         */
-       usb_control_msg(dev, 0x80, GET_DESCRIPTOR, DEVICE, 0, 64, buf, 8, 0);
+       usb_control_msg(dev, 0x80, GET_DESCRIPTOR, DEVICE << 8, 0, 64, buf, 8, 0);
+       //usb_control_msg(dev, 0x80, GET_DESCRIPTOR, DEVICE, 0, 64, buf, 8, 0);
 
        /* 
         * length (here =64) should be "number of byte to transfer", not 
@@ -297,8 +298,8 @@ u16 usb_submit_irp(usb_irp *irp)
                        /**** send token ****/
                printf("togl: %d\n", togl);
                hcdi_enqueue(td);
-               break;
 #if 0
+               break;
                memcpy(td->buffer, mybuf, td->actlen);
 #endif