]> git.proxmox.com Git - qemu.git/commitdiff
Make USB hid devices self-powered
authorRiku Voipio <riku.voipio@nokia.com>
Thu, 3 Dec 2009 13:56:06 +0000 (15:56 +0200)
committerAurelien Jarno <aurelien@aurel32.net>
Fri, 18 Dec 2009 22:23:56 +0000 (23:23 +0100)
Simplifies power budget negotiation.

Signed-off-by: Riku Voipio <riku.voipio@nokia.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
hw/usb-hid.c
hw/usb-hub.c

index 6abb62993793a1d5a1cb42f982a6161c94284c2c..4f320d7763722dc550748ba9a804bb46fdfa7f76 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 acf7f6072e096bb5cf41e7d58a57b35a1d2f5235..1aee7fe5b446d2c44bfac9c98a7a41375676f301 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,