Re: [RFC 07/15] PCI/ACPI: clean up acpi_pci_root_create()

2018-08-20 Thread Arnd Bergmann
On Mon, Aug 20, 2018 at 1:24 PM Rafael J. Wysocki wrote: > > On Mon, Aug 20, 2018 at 1:20 PM Arnd Bergmann wrote: > > > > On Mon, Aug 20, 2018 at 10:23 AM Rafael J. Wysocki > > wrote: > > > On Fri, Aug 17, 2018 at 12:33 PM Arnd Bergmann wrote: > > > > @@ -909,8 +881,7 @@ struct pci_bus

Re: [RFC 07/15] PCI/ACPI: clean up acpi_pci_root_create()

2018-08-20 Thread Rafael J. Wysocki
On Mon, Aug 20, 2018 at 1:20 PM Arnd Bergmann wrote: > > On Mon, Aug 20, 2018 at 10:23 AM Rafael J. Wysocki wrote: > > On Fri, Aug 17, 2018 at 12:33 PM Arnd Bergmann wrote: > > > @@ -909,8 +881,7 @@ struct pci_bus *acpi_pci_root_create(struct > > > acpi_pci_root *root, > > > int ret,

Re: [RFC 07/15] PCI/ACPI: clean up acpi_pci_root_create()

2018-08-20 Thread Arnd Bergmann
On Mon, Aug 20, 2018 at 10:23 AM Rafael J. Wysocki wrote: > On Fri, Aug 17, 2018 at 12:33 PM Arnd Bergmann wrote: > > @@ -909,8 +881,7 @@ struct pci_bus *acpi_pci_root_create(struct > > acpi_pci_root *root, > > int ret, busnum = root->secondary.start; > > struct acpi_device

Re: [RFC 07/15] PCI/ACPI: clean up acpi_pci_root_create()

2018-08-20 Thread Rafael J. Wysocki
On Fri, Aug 17, 2018 at 12:33 PM Arnd Bergmann wrote: > > The acpi_pci_create_root_bus() can be fully integrated into > acpi_pci_root_create(), improving a few things: > > * We can call pci_scan_root_bus_bridge(), which registers and > scans the bridge in one step. > * After a failure in

[RFC 07/15] PCI/ACPI: clean up acpi_pci_root_create()

2018-08-17 Thread Arnd Bergmann
The acpi_pci_create_root_bus() can be fully integrated into acpi_pci_root_create(), improving a few things: * We can call pci_scan_root_bus_bridge(), which registers and scans the bridge in one step. * After a failure in pci_register_host_bridge(), we correctly clean up the resources. * The