usb-uhci: update irq line on reset
authorGerd Hoffmann <kraxel@redhat.com>
Fri, 20 Apr 2012 13:13:24 +0000 (15:13 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Thu, 26 Apr 2012 10:21:17 +0000 (12:21 +0200)
uhci_reset() clears irq mask and irq status registers, but doesn't
update the irq line.  Which may result in suspious IRQs after uhci
reset.  Fix it.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/usb/hcd-uhci.c

index 266d550b9ce3543ddf4f4759271a158c06aa594b..9e211a0bb4f8242d0f947fe9fedbf439350a89d7 100644 (file)
@@ -369,6 +369,7 @@ static void uhci_reset(void *opaque)
     }
 
     uhci_async_cancel_all(s);
+    uhci_update_irq(s);
 }
 
 static void uhci_pre_save(void *opaque)