Re: [PATCH v1 7/7] ACPI: scan: Take PCI device enumeration into account directly
"Rafael J. Wysocki (Intel)" <[email protected]>
| Newsgroups | org.kernel.vger.linux-acpi,org.kernel.vger.linux-kernel,org.kernel.vger.linux-pci,org.kernel.vger.linux-pm |
|---|---|
| Message-ID | <CAJZ5v0g+N--XQFuD=ZD9tmevU6dQ32-VHJhbVVsDwqR9wM5BkA@mail.gmail.com> |
On Tue, Sep 1, 2026 at 10:44 AM Andy Shevchenko <[email protected]> wrote: > > On Mon, Aug 31, 2026 at 07:59:48PM +0200, Rafael J. Wysocki wrote: > > > The ACPI companions of PCI devices are associated with the corresponding > > PCI devices before being processed by acpi_scan_attach() and by the time > > they are passed to attach_subtree(), the PCI devices associated with > > them have been already enumerated and initialized (including power > > management initialization). > > > > Accordingly, it is not necessary or even useful to check their status in > > attach_subtree(), so do not do that. > > ... > > > + if (pci) { > > + acpi_handle_debug(device->handle, "PCI companion %s found\n", > > + dev_name(&pci->dev)); > > We have pci_name(). Ah, OK