Re: [PATCH rev.2 1/6] ACPI: Separate adding ACPI device objects from probing ACPI drivers
From: Yinghai Lu <yinghai@kernel.org>
Date: 2012-12-19 01:57:23
Also in:
linux-pci, lkml
From: Yinghai Lu <yinghai@kernel.org>
Date: 2012-12-19 01:57:23
Also in:
linux-pci, lkml
On Tue, Dec 18, 2012 at 2:05 PM, Rafael J. Wysocki [off-list ref] wrote:
quoted
i think we should put jiang four patches before Rafael's patches. http://git.kernel.org/?p=linux/kernel/git/yinghai/linux-yinghai.git;a=shortlog;h=refs/heads/for-pci-jiang-hotplugActually, I have something more radical than that in mind. :-) Namely, we don't need to call the wakeup-related stuff from acpi_pci_bind() and acpi_pci_unbind(). It's only there, because I did't find a better place for it when I added it. If we can set the ACPI handles of PCI devices in pci_scan_device(), which isn't too difficult to do (I actually have a patch for that and it's not too invasive), we can easily move the wakeup enabling stuff to pci_pm_init() and wakeup disabling somewhere near pci_release_capabilities().
good, let's see how acpi handles could be be passed to pci devices. Yinghai