From mboxrd@z Thu Jan 1 00:00:00 1970 From: Toshi Kani Subject: Re: [PATCH rev.2 1/6] ACPI: Separate adding ACPI device objects from probing ACPI drivers Date: Tue, 18 Dec 2012 13:48:16 -0700 Message-ID: <1355863696.18964.378.camel@misato.fc.hp.com> References: <8498184.VilrUmatxI@vostro.rjw.lan> <1525730.exQ7msTINR@vostro.rjw.lan> <1355789297.18964.334.camel@misato.fc.hp.com> <4082842.31rfDviYHK@vostro.rjw.lan> <1355847041.18964.369.camel@misato.fc.hp.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Return-path: Received: from g5t0008.atlanta.hp.com ([15.192.0.45]:44604 "EHLO g5t0008.atlanta.hp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751345Ab2LRU5Y (ORCPT ); Tue, 18 Dec 2012 15:57:24 -0500 In-Reply-To: Sender: linux-acpi-owner@vger.kernel.org List-Id: linux-acpi@vger.kernel.org To: Yinghai Lu Cc: "Rafael J. Wysocki" , ACPI Devel Maling List , Bjorn Helgaas , LKML , linux-pci@vger.kernel.org, Myron Stowe , Yijing Wang , Jiang Liu On Tue, 2012-12-18 at 10:59 -0800, Yinghai Lu wrote: > On Tue, Dec 18, 2012 at 8:10 AM, Toshi Kani wrote: > > On Tue, 2012-12-18 at 02:48 +0100, Rafael J. Wysocki wrote: > > > > So, I would propose the following changes. > > > > - Move the acpi_hot_add_bind() call back to the original place after > > the device_attach() call. > > - Rename the name of acpi_hot_add_bind() to something like > > acpi_bind_adr_device() since it is no longer hot-add only (and is > > specific to _ADR devices). > > - Create its pair function, acpi_unbind_adr_device(), which is called > > from acpi_bus_remove(). When a constructor interface is introduced, its > > destructor should be introduced as well. > > - Remove the binding procedure from acpi_pci_root_add(). This should > > be done in patch [2/6]. > > 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-hotplug Thanks for the pointer! Oh, I did not know that pci_dev gets removed before acpi_bus_trim() is called... I looked at Jiang's last two patches for the bind update, and they look good to me. Thanks, -Toshi