From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pz0-f46.google.com ([209.85.210.46]:57453 "EHLO mail-pz0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754900Ab2COSBN convert rfc822-to-8bit (ORCPT ); Thu, 15 Mar 2012 14:01:13 -0400 MIME-Version: 1.0 In-Reply-To: References: <1331362837-10740-1-git-send-email-yinghai@kernel.org> <1331362837-10740-25-git-send-email-yinghai@kernel.org> Date: Thu, 15 Mar 2012 11:01:12 -0700 Message-ID: Subject: Re: [PATCH v2 24/37] PCI, ACPI: Add pci_root_hp hot removal notification support. From: Yinghai Lu To: Bjorn Helgaas Cc: Jesse Barnes , x86 , Andrew Morton , Linus Torvalds , Greg Kroah-Hartman , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, Len Brown , linux-acpi@vger.kernel.org Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-pci-owner@vger.kernel.org List-ID: On Thu, Mar 15, 2012 at 10:53 AM, Bjorn Helgaas wrote: > Sure, the 'echo "\_SB.PCIB 3" > /proc/acpi/sci/notify' way looks more > like physical hotadd/remove because it is basically injecting the > notify event that the hardware/BIOS should be generating itself.  But > it is platform-specific and therefore unacceptable as a general user > interface. > > Using /sys/devices/LNXSYSTM:00/device:00/PNP0A08:00/remove would be a > more generic way.  The PNP0A08:00/remove implementation would > basically turn into an acpi_pci_root_remove() call, just like the > 'echo "\_SB.PCIB 3" > /proc/acpi/sci/notify' does. if the users can not find _SB.PCIB etc, they may not find LNXSYSTM:00/device:00/PNP0A08:00. so /sys/class/pci_bus/0000:80/remove is more easy for them? Yinghai