[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 2/6] pcie/slot: fix hotplug_event_notify().
From: |
Isaku Yamahata |
Subject: |
[Qemu-devel] [PATCH 2/6] pcie/slot: fix hotplug_event_notify(). |
Date: |
Wed, 27 Oct 2010 19:21:17 +0900 |
This patch fixes the miscondition to trigger slot event
which is introduced by cd870502e228f8f028f93fb585ae3b208fcb46c7.
Signed-off-by: Isaku Yamahata <address@hidden>
---
hw/pcie.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/hw/pcie.c b/hw/pcie.c
index 64cc003..3c52849 100644
--- a/hw/pcie.c
+++ b/hw/pcie.c
@@ -148,7 +148,7 @@ static void hotplug_event_notify(PCIDevice *dev)
uint16_t sltsta = pci_get_word(exp_cap + PCI_EXP_SLTSTA);
dev->exp.hpev_notified = (sltctl & PCI_EXP_SLTCTL_HPIE) &&
- (sltsta & PCI_EXP_HP_EV_SUPPORTED);
+ (sltsta & sltctl & PCI_EXP_HP_EV_SUPPORTED);
if (prev == dev->exp.hpev_notified) {
return;
--
1.7.1.1
- [Qemu-devel] [PATCH 0/6] pcie: fixes for pci branch, Isaku Yamahata, 2010/10/27
- [Qemu-devel] [PATCH 1/6] pcie: fix pcie_cap_slot_write_config()., Isaku Yamahata, 2010/10/27
- [Qemu-devel] [PATCH 5/6] pcie/slot: fix save/load, Isaku Yamahata, 2010/10/27
- [Qemu-devel] [PATCH 2/6] pcie/slot: fix hotplug_event_notify().,
Isaku Yamahata <=
- [Qemu-devel] [PATCH 6/6] msix: remove range checks., Isaku Yamahata, 2010/10/27
- [Qemu-devel] [PATCH 3/6] pcie/slot: clean up of hotplug_event_notify()., Isaku Yamahata, 2010/10/27
- [Qemu-devel] [PATCH 4/6] pcie/slot: factor out the logic to update hotplug event status., Isaku Yamahata, 2010/10/27
- [Qemu-devel] Re: [PATCH 0/6] pcie: fixes for pci branch, Michael S. Tsirkin, 2010/10/27