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>
This commit is contained in:
parent
88ca9f047b
commit
ae2dd33693
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue