From 659139d780ed6ecfaff4a8a904dab37d179017d1 Mon Sep 17 00:00:00 2001 From: Riku Voipio Date: Thu, 3 Dec 2009 15:56:06 +0200 Subject: [PATCH] Make USB hid devices self-powered Simplifies power budget negotiation. Signed-off-by: Riku Voipio Signed-off-by: Aurelien Jarno --- hw/usb-hid.c | 2 +- hw/usb-hub.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/usb-hid.c b/hw/usb-hid.c index 6abb629937..4f320d7763 100644 --- a/hw/usb-hid.c +++ b/hw/usb-hid.c @@ -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, diff --git a/hw/usb-hub.c b/hw/usb-hub.c index acf7f6072e..1aee7fe5b4 100644 --- a/hw/usb-hub.c +++ b/hw/usb-hub.c @@ -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, -- 2.11.0