From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MEfxJ-00011a-Bo for qemu-devel@nongnu.org; Thu, 11 Jun 2009 04:48:17 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MEfxE-0000zf-OG for qemu-devel@nongnu.org; Thu, 11 Jun 2009 04:48:16 -0400 Received: from [199.232.76.173] (port=39871 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MEfxE-0000zV-Dt for qemu-devel@nongnu.org; Thu, 11 Jun 2009 04:48:12 -0400 Received: from mx2.redhat.com ([66.187.237.31]:37892) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MEfxD-0007q5-Sd for qemu-devel@nongnu.org; Thu, 11 Jun 2009 04:48:12 -0400 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id n5B8mAQm013188 for ; Thu, 11 Jun 2009 04:48:10 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx2.corp.redhat.com (8.13.1/8.13.1) with ESMTP id n5B8mAvP011654 for ; Thu, 11 Jun 2009 04:48:10 -0400 Received: from dhcp-1-237.tlv.redhat.com (dhcp-1-237.tlv.redhat.com [10.35.1.237]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id n5B8m9oa006387 for ; Thu, 11 Jun 2009 04:48:09 -0400 Date: Thu, 11 Jun 2009 11:48:08 +0300 From: Gleb Natapov Message-ID: <20090611084808.GA19508@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Subject: [Qemu-devel] Register uhci_reset() callback. List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Update IRQ line on reset. Signed-off-by: Gleb Natapov diff --git a/hw/usb-uhci.c b/hw/usb-uhci.c index 689d40a..2db9850 100644 --- a/hw/usb-uhci.c +++ b/hw/usb-uhci.c @@ -346,6 +346,7 @@ static void uhci_reset(UHCIState *s) } uhci_async_cancel_all(s); + uhci_update_irq(s); } static void uhci_save(QEMUFile *f, void *opaque) @@ -1093,6 +1094,7 @@ void usb_uhci_piix3_init(PCIBus *bus, int devfn) } s->frame_timer = qemu_new_timer(vm_clock, uhci_frame_timer, s); + qemu_register_reset(uhci_reset, 0, s); uhci_reset(s); /* Use region 4 for consistency with real hardware. BSD guests seem @@ -1127,6 +1129,7 @@ void usb_uhci_piix4_init(PCIBus *bus, int devfn) } s->frame_timer = qemu_new_timer(vm_clock, uhci_frame_timer, s); + qemu_register_reset(uhci_reset, 0, s); uhci_reset(s); /* Use region 4 for consistency with real hardware. BSD guests seem -- Gleb.