summaryrefslogtreecommitdiff
path: root/hw/usb/hcd-uhci.c
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2015-05-07 09:24:00 +0200
committerGerd Hoffmann <kraxel@redhat.com>2015-05-08 13:01:08 +0200
commitca5a21c40d95d7a4e26ea0a304fd2cd8ad4e6ae1 (patch)
tree1cfe6c94a7d479d00ec560d7f8d15cd721f0dfb9 /hw/usb/hcd-uhci.c
parentcdf0d7694d877f19936d7404fd10b580f6e9a9b1 (diff)
downloadqemu-ca5a21c40d95d7a4e26ea0a304fd2cd8ad4e6ae1.zip
uhci: controller is halted after reset
... 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>
Diffstat (limited to 'hw/usb/hcd-uhci.c')
-rw-r--r--hw/usb/hcd-uhci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/usb/hcd-uhci.c b/hw/usb/hcd-uhci.c
index 64a7d873af..3f0ed62689 100644
--- a/hw/usb/hcd-uhci.c
+++ b/hw/usb/hcd-uhci.c
@@ -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;