From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44073) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aAQsP-000065-EH for qemu-devel@nongnu.org; Sat, 19 Dec 2015 18:25:26 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aAQsM-0006yg-3U for qemu-devel@nongnu.org; Sat, 19 Dec 2015 18:25:25 -0500 From: =?UTF-8?q?Herv=C3=A9=20Poussineau?= Date: Sun, 20 Dec 2015 00:23:50 +0100 Message-Id: <1450567431-31795-3-git-send-email-hpoussin@reactos.org> In-Reply-To: <1450567431-31795-1-git-send-email-hpoussin@reactos.org> References: <1450567431-31795-1-git-send-email-hpoussin@reactos.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH 2/3] ohci: fix Host Controller USBRESET List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: qemu-ppc@nongnu.org, Gerd Hoffmann , =?UTF-8?q?Herv=C3=A9=20Poussineau?= Specification says that, when entering this state, "the contents of the r= egisters (except Root Hub registers) are preserved by the HC. [...] The Root Hub i= s being reset, which causes the Root Hub's downstream ports to be reset and possibly pow= ered off." Signed-off-by: Herv=C3=A9 Poussineau --- hw/usb/hcd-ohci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/usb/hcd-ohci.c b/hw/usb/hcd-ohci.c index 0661804..24c62b4 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; } } --=20 2.1.4