Patchwork usb-uhci: update irq line on reset

login
register
mail settings
Submitter Gerd Hoffmann
Date April 24, 2012, 11:24 a.m.
Message ID <1335266698-14517-1-git-send-email-kraxel@redhat.com>
Download mbox | patch
Permalink /patch/154667/
State New
Headers show

Comments

Gerd Hoffmann - April 24, 2012, 11:24 a.m.
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 |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

Patch

diff --git a/hw/usb/hcd-uhci.c b/hw/usb/hcd-uhci.c
index 266d550..9e211a0 100644
--- a/hw/usb/hcd-uhci.c
+++ b/hw/usb/hcd-uhci.c
@@ -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)