OSDN Git Service

pcie: update satus on reset
authorMichael S. Tsirkin <mst@redhat.com>
Wed, 27 Oct 2010 15:48:42 +0000 (17:48 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 27 Oct 2010 17:01:59 +0000 (19:01 +0200)
Reset never triggers a new event, so it's enough to
update status.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/pcie.c

index 373e33e..35918f7 100644 (file)
--- a/hw/pcie.c
+++ b/hw/pcie.c
@@ -307,7 +307,7 @@ void pcie_cap_slot_reset(PCIDevice *dev)
                                  PCI_EXP_SLTSTA_PDC |
                                  PCI_EXP_SLTSTA_ABP);
 
-    hotplug_event_notify(dev);
+    hotplug_event_update_event_status(dev);
 }
 
 void pcie_cap_slot_write_config(PCIDevice *dev,