diff options
author | Hervé Poussineau <hpoussin@reactos.org> | 2015-12-20 00:23:50 +0100 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2016-01-08 09:25:50 +0100 |
commit | 7d938fd14b87e1d8db2de5ea1359d6d11e366a56 (patch) | |
tree | 1f9195e0b8d85b98d1676935ca6162a35e57b3e0 /hw/usb/hcd-ohci.c | |
parent | 84d04e216279b5388c66c00fb00ed591da894357 (diff) | |
download | qemu-7d938fd14b87e1d8db2de5ea1359d6d11e366a56.zip |
ohci: fix Host Controller USBRESET
Specification says that, when entering this state, "the contents of the registers
(except Root Hub registers) are preserved by the HC. [...] The Root Hub is being reset,
which causes the Root Hub's downstream ports to be reset and possibly powered off."
Signed-off-by: Hervé Poussineau <hpoussin@reactos.org>
Tested-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Message-id: 1450567431-31795-3-git-send-email-hpoussin@reactos.org
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw/usb/hcd-ohci.c')
-rw-r--r-- | hw/usb/hcd-ohci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/usb/hcd-ohci.c b/hw/usb/hcd-ohci.c index 0661804abb..24c62b4258 100644 --- a/hw/usb/hcd-ohci.c +++ b/hw/usb/hcd-ohci.c @@ -1451,7 +1451,7 @@ static void ohci_set_ctl(OHCIState *ohci, uint32_t val) trace_usb_ohci_resume(ohci->name); break; case OHCI_USB_RESET: - ohci_hard_reset(ohci); + ohci_roothub_reset(ohci); break; } } |