Re: [Qemu-devel] [PATCH v6 2/2] PCI: acpiphp: remove all functions in slot, even without ACPI _EJx

2012-05-23 Thread Yinghai Lu
On Tue, May 22, 2012 at 9:35 PM, Bjorn Helgaas wrote: > From: Amos Kong > > When we add a device with acpiphp, we enumerate all functions in the > slot with pci_scan_slot(), regardless of whether they have associated > ACPI methods such as _EJ0. > > When removing the device, we previously removed

Re: [Qemu-devel] [PATCH v7 2/2] PCI: acpiphp: remove all functions in slot, even without ACPI _EJx

2012-05-23 Thread Yinghai Lu
On Tue, May 22, 2012 at 10:15 PM, Amos Kong wrote: > Attached the v7,  test passed. would be better to have break... +static struct pci_dev *dev_in_slot(struct acpiphp_slot *slot) +{ + struct pci_bus *bus = slot->bridge->pci_bus; + struct pci_dev *dev; + int ret = NULL; + +