ohci: fix command HostControllerReset
authorHervé Poussineau <hpoussin@reactos.org>
Sat, 19 Dec 2015 23:23:51 +0000 (00:23 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Fri, 8 Jan 2016 08:25:50 +0000 (09:25 +0100)
Specification says that: "This bit is set by HCD to initiate a software reset of HC."

Signed-off-by: Hervé Poussineau <hpoussin@reactos.org>
Tested-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Message-id: 1450567431-31795-4-git-send-email-hpoussin@reactos.org
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/usb/hcd-ohci.c

index 24c62b4..d225ebb 100644 (file)
@@ -1714,7 +1714,7 @@ static void ohci_mem_write(void *opaque,
         ohci->status |= val;
 
         if (ohci->status & OHCI_STATUS_HCR)
-            ohci_hard_reset(ohci);
+            ohci_soft_reset(ohci);
         break;
 
     case 3: /* HcInterruptStatus */