From: Michael Walle Date: Thu, 21 Jul 2011 18:52:24 +0000 (+0200) Subject: lm32: softusb: claim to support full speed X-Git-Tag: v0.15.0-rc2~5 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ae2dd33693b46e472db70cd174b17b4f52d7eb17;p=thirdparty%2Fqemu.git 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 Signed-off-by: Michael Walle Signed-off-by: Edgar E. Iglesias --- diff --git a/hw/milkymist-softusb.c b/hw/milkymist-softusb.c index ce2bfc60f28..abf7b59acdc 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");