Re: [PATCH v8 07/22] ACPI: Separate acpi_bus_trim to support two steps.

2013-01-15 Thread Rafael J. Wysocki
On Monday, January 14, 2013 10:31:35 PM Yinghai Lu wrote: > On Sat, Jan 12, 2013 at 2:40 PM, Rafael J. Wysocki wrote: > > On Friday, January 11, 2013 02:40:34 PM Yinghai Lu wrote: > >> Current all acpi_bus_trim callers have rmdevice to 1. > >> that means it will remove all acpi devices. > >> > >>

Re: [PATCH v8 07/22] ACPI: Separate acpi_bus_trim to support two steps.

2013-01-15 Thread Rafael J. Wysocki
On Monday, January 14, 2013 10:31:35 PM Yinghai Lu wrote: On Sat, Jan 12, 2013 at 2:40 PM, Rafael J. Wysocki r...@sisk.pl wrote: On Friday, January 11, 2013 02:40:34 PM Yinghai Lu wrote: Current all acpi_bus_trim callers have rmdevice to 1. that means it will remove all acpi devices.

Re: [PATCH v8 07/22] ACPI: Separate acpi_bus_trim to support two steps.

2013-01-14 Thread Yinghai Lu
On Sat, Jan 12, 2013 at 2:40 PM, Rafael J. Wysocki wrote: > On Friday, January 11, 2013 02:40:34 PM Yinghai Lu wrote: >> Current all acpi_bus_trim callers have rmdevice to 1. >> that means it will remove all acpi devices. >> >> When 0, is passed, it will keep the parent. >> >> For root bus

Re: [PATCH v8 07/22] ACPI: Separate acpi_bus_trim to support two steps.

2013-01-14 Thread Yinghai Lu
On Sat, Jan 12, 2013 at 2:40 PM, Rafael J. Wysocki r...@sisk.pl wrote: On Friday, January 11, 2013 02:40:34 PM Yinghai Lu wrote: Current all acpi_bus_trim callers have rmdevice to 1. that means it will remove all acpi devices. When 0, is passed, it will keep the parent. For root bus

Re: [PATCH v8 07/22] ACPI: Separate acpi_bus_trim to support two steps.

2013-01-12 Thread Rafael J. Wysocki
On Friday, January 11, 2013 02:40:34 PM Yinghai Lu wrote: > Current all acpi_bus_trim callers have rmdevice to 1. > that means it will remove all acpi devices. > > When 0, is passed, it will keep the parent. > > For root bus hotremove support, we need to have pci device to be > removed before

Re: [PATCH v8 07/22] ACPI: Separate acpi_bus_trim to support two steps.

2013-01-12 Thread Rafael J. Wysocki
On Friday, January 11, 2013 02:40:34 PM Yinghai Lu wrote: Current all acpi_bus_trim callers have rmdevice to 1. that means it will remove all acpi devices. When 0, is passed, it will keep the parent. For root bus hotremove support, we need to have pci device to be removed before acpi

[PATCH v8 07/22] ACPI: Separate acpi_bus_trim to support two steps.

2013-01-11 Thread Yinghai Lu
Current all acpi_bus_trim callers have rmdevice to 1. that means it will remove all acpi devices. When 0, is passed, it will keep the parent. For root bus hotremove support, we need to have pci device to be removed before acpi devices. So try to keep all acpi devices, and only stop drivers with

[PATCH v8 07/22] ACPI: Separate acpi_bus_trim to support two steps.

2013-01-11 Thread Yinghai Lu
Current all acpi_bus_trim callers have rmdevice to 1. that means it will remove all acpi devices. When 0, is passed, it will keep the parent. For root bus hotremove support, we need to have pci device to be removed before acpi devices. So try to keep all acpi devices, and only stop drivers with