]> Git Repo - qemu.git/commitdiff
ehci: Don't call commit_irq after raising PCD
authorHans de Goede <[email protected]>
Fri, 14 Dec 2012 13:35:32 +0000 (14:35 +0100)
committerGerd Hoffmann <[email protected]>
Mon, 7 Jan 2013 11:57:23 +0000 (12:57 +0100)
ehci_raise_irq(s, USBSTS_PCD), gets applied immediately so there is no need
to call commit_irq after it.

Signed-off-by: Hans de Goede <[email protected]>
Signed-off-by: Gerd Hoffmann <[email protected]>
hw/usb/hcd-ehci.c

index 8da4b6a6d2f73f7901ba0a78081a231461afe5e4..1713394c6547a230bb996e49df9b95c49db96758 100644 (file)
@@ -757,7 +757,6 @@ static void ehci_attach(USBPort *port)
     *portsc |= PORTSC_CSC;
 
     ehci_raise_irq(s, USBSTS_PCD);
-    ehci_commit_irq(s);
 }
 
 static void ehci_detach(USBPort *port)
@@ -787,7 +786,6 @@ static void ehci_detach(USBPort *port)
     *portsc |= PORTSC_CSC;
 
     ehci_raise_irq(s, USBSTS_PCD);
-    ehci_commit_irq(s);
 }
 
 static void ehci_child_detach(USBPort *port, USBDevice *child)
This page took 0.023267 seconds and 4 git commands to generate.