From: Hans de Goede Date: Fri, 14 Dec 2012 13:35:32 +0000 (+0100) Subject: ehci: Don't call commit_irq after raising PCD X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=4a9ef2c042207e4eddbd010ccf2e1c8264d8f0d6;p=qemu.git ehci: Don't call commit_irq after raising PCD 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 Signed-off-by: Gerd Hoffmann --- diff --git a/hw/usb/hcd-ehci.c b/hw/usb/hcd-ehci.c index 8da4b6a6d2..1713394c65 100644 --- a/hw/usb/hcd-ehci.c +++ b/hw/usb/hcd-ehci.c @@ -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)