]> git.proxmox.com Git - mirror_qemu.git/commitdiff
uhci: controller is halted after reset
authorGerd Hoffmann <kraxel@redhat.com>
Thu, 7 May 2015 07:24:00 +0000 (09:24 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Fri, 8 May 2015 11:01:08 +0000 (13:01 +0200)
... and the status register should say so.

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

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/usb/hcd-uhci.c

index 64a7d873af1864e08053ddeaf9a2cb89393644ea..3f0ed62689cd9a446456104c5aa9f61f6643757d 100644 (file)
@@ -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;