Skip to contentSkip to conversation

lm32: softusb: claim to support full speed

PATCH In review Michael Walle 3 participants 5 messages Jul 21, 2011 – Aug 3, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 hw/milkymist-softusb.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
hw/milkymist-softusb.c +4 -2
index ce2bfc6..abf7b59 100644
@@ -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");
Signature · 1 line
1.7.2.5
#1 lore raw

Hi Anthony,

could you please apply this patch to the 0.15 (and master) branch.

Am Donnerstag 21 Juli 2011, 20:52:24 schrieb Michael Walle:

Quoted 28 lines

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.

---
 hw/milkymist-softusb.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
hw/milkymist-softusb.c +4 -2
index ce2bfc6..abf7b59 100644
@@ -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");
Signature · 1 line
Michael
#2 lore raw

[Qemu-devel] [0.15][PATCH] lm32: softusb: claim to support full speed

In reply to Michael Walle

Am Donnerstag 21 Juli 2011, 20:52:24 schrieb Michael Walle:

Quoted 18 lines

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.

---
 hw/milkymist-softusb.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
hw/milkymist-softusb.c +1 -0
index ce2bfc6..abf7b59 100644
@@ -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

hw/milkymist-softusb.c static int milkymist_softusb_init(SysBusDevice *dev) · line 321

Quoted 10 lines
hw/milkymist-softusb.c +3 -2
+     * 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");

Ping. Without this patch the whole milkymist target is non-functional in the 0.15 release.

Signature · 1 line
Michael
#4 lore raw
Quoted 10 lines · Gerd Hoffmann
Quoted 5 lines · Michael Walle

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.

For both master+stable:

Thanks, I've applied it to both master and stable-0.15.

Cheers