mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/3 v2] Find pci root bridges by comparing HID from acpi_device_info, not acpi_device.
@ 2012-10-12 12:34 Tang Chen
  2012-10-12 12:34 ` [PATCH 1/3 v2] Introduce a new acpi to determine HID match Tang Chen
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Tang Chen @ 2012-10-12 12:34 UTC (permalink / raw)
  To: bhelgaas, lenb, yinghai, jiang.liu, izumi.taku, isimatu.yasuaki,
	linux-acpi, linux-pci, linux-kernel

Hi Yinghai,

I found a little problem in your following patches. 
[PATCH 00/40] PCI, ACPI, x86: pci root bus hotplug support.

In acpi_is_root_bridge(), it gets device's HID from acpi_device struct.
If the device is not added when the system boots, there will be no
acpi_device for it. And as a result, acpi_is_root_bridge() will fail.
But it doesn't mean that the device is not a root bridge.

In this case, the not-added root bridges have no handle_hotplug_event_root()
callback registerred. And when we hot add it later, it will do nothing.

This patch set changes the acpi_is_root_bridge()'s behavior. When we fail
to get HID from acpi_device, we will get HID from acpi_device_info by
acpi_get_object_info(), which gets the HID from ACPI namespace directly.

So no matter the device is present or not, we will always find out if it
is a pci root bridge, and register a handle_hotplug_event_root() callback
for it.

These patches are based on Lu Yinghai's for-pci-root-bus-hotplug branch.

Tang Chen (3):
  Introduce a new acpi to determine HID match.
  Do not use acpi_device to find pci root bridge in _init code.
  Check exit status of acpi_install_notify_handler() in
    find_root_bridges().

 drivers/acpi/pci_root.c    |   19 +++++++++++--------
 drivers/acpi/pci_root_hp.c |   12 +++++++++---
 drivers/acpi/scan.c        |   24 ++++++++++++++++++++++++
 include/acpi/acpi_bus.h    |    2 ++
 4 files changed, 46 insertions(+), 11 deletions(-)


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2012-10-15  5:41 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-12 12:34 [PATCH 0/3 v2] Find pci root bridges by comparing HID from acpi_device_info, not acpi_device Tang Chen
2012-10-12 12:34 ` [PATCH 1/3 v2] Introduce a new acpi to determine HID match Tang Chen
2012-10-12 18:26   ` Yinghai Lu
2012-10-12 12:34 ` [PATCH 2/3 v2] Do not use acpi_device to find pci root bridge in _init code Tang Chen
2012-10-12 18:32   ` Yinghai Lu
2012-10-15  5:41   ` Taku Izumi
2012-10-12 12:34 ` [PATCH 3/3 v2] Check exit status of acpi_install_notify_handler() in find_root_bridges() Tang Chen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®