]> git.proxmox.com Git - mirror_qemu.git/commitdiff
ohci: fix Host Controller USBRESET
authorHervé Poussineau <hpoussin@reactos.org>
Sat, 19 Dec 2015 23:23:50 +0000 (00:23 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Fri, 8 Jan 2016 08:25:50 +0000 (09:25 +0100)
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>
hw/usb/hcd-ohci.c

index 0661804abbf204b1dfc6a43e4cdf978119609465..24c62b42586fbaac7cb9745e7cec5a3e172b8df8 100644 (file)
@@ -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;
     }
 }