mbox series

[v1,0/3] PCI: ACPI: glue: Get rid of acpi_pci_bus and rearrange code

Message ID 1794818.tdWV9SEqCh@kreacher (mailing list archive)
Headers show
Series PCI: ACPI: glue: Get rid of acpi_pci_bus and rearrange code | expand

Message

Rafael J. Wysocki Sept. 18, 2021, 12:51 p.m. UTC
Hi All,

After commit 375553a93201 ("PCI: Setup ACPI fwnode early and at the same time
with OF"), PCI only uses acpi_pci_bus for running the ->setup() and ->cleanup()
callbacks from there, but the functions pointed to by them can be invoked
directly from the ACPI "glue" code if the device being processed is a PCI one,
so patch [1/3] drops acpi_pci_bus and rearranges the code to call the PCI
"setup" and "cleanup" routines directly.

After that, the ->cleanup callback in struct acpi_bus_type has no users, so
patch [2/3] gets rid of it.

Finally, patch [3/3] rearranges acpi_device_notify() to avoid looking up
the "ACPI bus type" of the device in bus_type_list if its ACPI companion has
been set upfront.

Thanks!