Skip to contentSkip to conversation

uhci: controller is halted after reset

PATCH New Gerd Hoffmann 1 participant 1 message May 7, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 uhci: controller is halted after reset

... and the status register should say so.

Fixes "usbus0: controller did not stop" error printed by freebsd.

---
 hw/usb/hcd-uhci.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
hw/usb/hcd-uhci.c +1 -1
index 64a7d87..3f0ed62 100644
@@ -366,7 +366,7 @@ static void uhci_reset(DeviceState *dev)
     pci_conf[0x6a] = 0x01; /* usb clock */
     pci_conf[0x6b] = 0x00;
     s->cmd = 0;
-    s->status = 0;
+    s->status = UHCI_STS_HCHALTED;
     s->status2 = 0;
     s->intr = 0;
     s->fl_base_addr = 0;
Signature · 1 line
1.8.3.1