aboutsummaryrefslogtreecommitdiff
path: root/hw/milkymist-softusb.c
diff options
context:
space:
mode:
authorMichael Walle <michael@walle.cc>2011-07-21 20:52:24 +0200
committerEdgar E. Iglesias <edgar.iglesias@gmail.com>2011-08-04 01:14:22 +0200
commita6f4e09d90cef88be07cd597c2f2a9f0b3ed0763 (patch)
tree39ee02d72526023e82f3e78f20b5b407177032d9 /hw/milkymist-softusb.c
parent67494323f2c782fe3e65c60529fe9dfa613fc500 (diff)
downloadqemu-a6f4e09d90cef88be07cd597c2f2a9f0b3ed0763.zip
qemu-a6f4e09d90cef88be07cd597c2f2a9f0b3ed0763.tar.gz
qemu-a6f4e09d90cef88be07cd597c2f2a9f0b3ed0763.tar.bz2
lm32: softusb: claim to support full speed
The QEMU keyboard and mouse reports themselves as full speed devices, though they are actually low speed devices. Until this is fixed, claim that we are supporting full speed devices. Acked-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Michael Walle <michael@walle.cc> Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
Diffstat (limited to 'hw/milkymist-softusb.c')
-rw-r--r--hw/milkymist-softusb.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/hw/milkymist-softusb.c b/hw/milkymist-softusb.c
index ce2bfc6..abf7b59 100644
--- a/hw/milkymist-softusb.c
+++ b/hw/milkymist-softusb.c
@@ -310,10 +310,12 @@ static int milkymist_softusb_init(SysBusDevice *dev)
usb_bus_new(&s->usbbus, &softusb_bus_ops, NULL);
/* our two ports */
+ /* FIXME: claim to support full speed devices. qemu mouse and keyboard
+ * report themselves as full speed devices. */
usb_register_port(&s->usbbus, &s->usbport[0], NULL, 0, &softusb_ops,
- USB_SPEED_MASK_LOW);
+ USB_SPEED_MASK_LOW | USB_SPEED_MASK_FULL);
usb_register_port(&s->usbbus, &s->usbport[1], NULL, 1, &softusb_ops,
- USB_SPEED_MASK_LOW);
+ USB_SPEED_MASK_LOW | USB_SPEED_MASK_FULL);
/* and finally create an usb keyboard */
s->usbdev = usb_create_simple(&s->usbbus, "usb-kbd");