From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49383) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aHUT1-0004Ho-JG for qemu-devel@nongnu.org; Fri, 08 Jan 2016 05:40:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aHUSz-0000uN-R8 for qemu-devel@nongnu.org; Fri, 08 Jan 2016 05:40:23 -0500 Received: from mx1.redhat.com ([209.132.183.28]:50459) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aHUSz-0000s9-J3 for qemu-devel@nongnu.org; Fri, 08 Jan 2016 05:40:21 -0500 From: Gerd Hoffmann Date: Fri, 8 Jan 2016 11:40:10 +0100 Message-Id: <1452249615-8222-3-git-send-email-kraxel@redhat.com> In-Reply-To: <1452249615-8222-1-git-send-email-kraxel@redhat.com> References: <1452249615-8222-1-git-send-email-kraxel@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PULL 2/7] ohci: fix Host Controller USBRESET List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Herv=C3=A9=20Poussineau?= , Gerd Hoffmann From: Herv=C3=A9 Poussineau 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 Tested-by: Mark Cave-Ayland Message-id: 1450567431-31795-3-git-send-email-hpoussin@reactos.org Signed-off-by: Gerd Hoffmann --- 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 1.8.3.1