Make devices self-powered
authorRiku Voipio <riku.voipio@nokia.com>
Tue, 17 Mar 2009 15:15:05 +0000 (17:15 +0200)
committerRiku Voipio <riku.voipio@nokia.com>
Tue, 17 Mar 2009 15:15:05 +0000 (17:15 +0200)
Simplifies power budget negotiation.

hw/usb-hid.c
hw/usb-hub.c

index c850a91..8a6661d 100644 (file)
@@ -100,7 +100,7 @@ static const uint8_t qemu_mouse_config_descriptor[] = {
        0x01,       /*  u8  bNumInterfaces; (1) */
        0x01,       /*  u8  bConfigurationValue; */
        0x04,       /*  u8  iConfiguration; */
-       0xa0,       /*  u8  bmAttributes;
+       0xe0,       /*  u8  bmAttributes;
                                 Bit 7: must be set,
                                     6: Self-powered,
                                     5: Remote wakeup,
index 9f26bbe..1708aff 100644 (file)
@@ -113,7 +113,7 @@ static const uint8_t qemu_hub_config_descriptor[] = {
        0x01,       /*  u8  bNumInterfaces; (1) */
        0x01,       /*  u8  bConfigurationValue; */
        0x00,       /*  u8  iConfiguration; */
-       0xc0,       /*  u8  bmAttributes;
+       0xe0,       /*  u8  bmAttributes;
                                 Bit 7: must be set,
                                     6: Self-powered,
                                     5: Remote wakeup,