Skip to content

PCI, ACPI: Use bus type notifier for root bus hotplug

Yinghai Lu linux-acpi linux-pci lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest10 patches 19 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10device: add drivers_autoprobe in struct devicedrivers/base/bus.c drivers/base/core.c include/linux/device.h+3 -139 replies
2/10ACPI: use device drivers_autoprobe to delay loading acpi driversdrivers/acpi/scan.c+47 -10 replies
3/10PCI: prepare to use device drivers_autoprobe to delay attach driversdrivers/pci/bus.c drivers/pci/hotplug.c+36 -00 replies
4/10PCI: Use device_add for device and bus earlydrivers/pci/bus.c drivers/pci/iov.c drivers/pci/probe.c+20 -460 replies
5/10PCI, ACPI: Separate out acpi_pci_root_osc_contorl_setdrivers/acpi/pci_root.c+73 -630 replies
6/10PCI, ACPI: Move hot add root bus conf code to acpi_pci_root_adddrivers/acpi/pci_root.c+16 -150 replies
7/10PCI, ACPI: Remove not used acpi_pci_root_start()drivers/acpi/pci_root.c+2 -120 replies
8/10PCI: Add dev_is_pci_host_bridge() helperinclude/linux/pci.h+1 -00 replies
9/10PCI, ACPI: using acpi/pci bind path for pci_host_bridgedrivers/acpi/pci_bind.c drivers/acpi/pci_root.c+40 -400 replies
10/10PCI, ACPI: use bus_type notifier for acpi_pci_bind_notifydrivers/acpi/glue.c drivers/acpi/pci_bind.c drivers/acpi/pci_root.c +1 more+81 -40 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/10] PCI, ACPI: Use bus type notifier for root bus hotplug

Add device drivers_autoprobe to make hotplug path more like booting path:
create all acpi device and add them to device tree at first
then attach acpi drivers.
create all pci devices and add them to device tree at first
then attach pci drivers.

1. kill acpi_pci_root_start.
2. register pci devices to device tree as soon as possible after pci devices and bus get created.
After pci_scan_child_bus, all bus and devices get into devices already. pci_bus_add_devices will only attach driver to pci devices.

could get from
git://git.kernel.org/pub/scm/linux/kernel/git/yinghai/linux-yinghai.git for-pci-next

Yinghai Lu (10):
device: add drivers_autoprobe in struct device
ACPI: use device drivers_autoprobe to delay loading acpi drivers
PCI: prepare to use device drivers_autoprobe to delay attach drivers
PCI: Use device_add for device and bus early
PCI, ACPI: Separate out acpi_pci_root_osc_contorl_set PCI, ACPI: Move hot add root bus conf code to acpi_pci_root_add PCI, ACPI: Remove not used acpi_pci_root_start()
PCI: Add dev_is_pci_host_bridge() helper
PCI, ACPI: using acpi/pci bind path for pci_host_bridge PCI, ACPI: use bus_type notifier for acpi_pci_bind_notify

 drivers/acpi/glue.c         |    4 -
 drivers/acpi/pci_bind.c     |   99 +++++++++++++++----
 drivers/acpi/pci_root.c     |  223 +++++++++++++++++++++++--------------------
 drivers/acpi/scan.c         |   48 +++++++++-
 drivers/base/bus.c          |    2 +-
 drivers/base/core.c         |    1 +
 drivers/pci/bus.c           |   45 +++------
 drivers/pci/hotplug.c       |   25 +++++
 drivers/pci/iov.c           |    7 --
 drivers/pci/probe.c         |   25 ++++--
 include/acpi/acpi_drivers.h |    2 +
 include/linux/device.h      |    1 +
 include/linux/pci.h         |    1 +
 13 files changed, 310 insertions(+), 173 deletions(-)
Signature · 1 line
1.7.7