Skip to content

ACPI / hotplug / PCI: Updates on top of changes merged recently

Rafael J. Wysocki linux-acpi linux-pci lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest13 patches 1 replyIn review
  2. v111 patches 2 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/13ACPI / hotplug / PCI: Remove entries from bus->devices in reverse orderdrivers/pci/hotplug/acpiphp_glue.c+4 -40 replies
2/13ACPI / hotplug / PCI: Move PCI rescan-remove locking to hotplug_event()drivers/pci/hotplug/acpiphp_glue.c+2 -20 replies
3/13ACPI / hotplug / PCI: Simplify disable_slot()drivers/pci/hotplug/acpiphp_glue.c+5 -230 replies
4/13ACPI / hotplug / PCI: Proper kerneldoc comments for enumeration/removaldrivers/pci/hotplug/acpiphp_glue.c+10 -40 replies
5/13ACPI / hotplug / PCI: Simplify register_slot()drivers/pci/hotplug/acpiphp_glue.c+4 -80 replies
6/13ACPI / hotplug / PCI: Drop acpiphp_bus_trim()drivers/pci/hotplug/acpiphp_glue.c+11 -190 replies
7/13ACPI / hotplug / PCI: Rework acpiphp_no_hotplug()drivers/pci/hotplug/acpiphp_glue.c+9 -100 replies
8/13ACPI / hotplug / PCI: Store acpi_device pointer in acpiphp_contextdrivers/pci/hotplug/acpiphp.h drivers/pci/hotplug/acpiphp_glue.c+28 -250 replies
9/13ACPI / hotplug / PCI: Drop acpiphp_bus_add()drivers/pci/hotplug/acpiphp_glue.c+6 -160 replies
10/13ACPI / hotplug / PCI: Drop crit_sect lockingdrivers/pci/hotplug/acpiphp.h drivers/pci/hotplug/acpiphp_glue.c+3 -210 replies
11/13ACPI / hotplug / PCI: Simplify hotplug_event()drivers/pci/hotplug/acpiphp_glue.c+6 -130 replies
12/13ACPI / hotplug / PCI: Use acpi_handle_debug() in hotplug_event()drivers/pci/hotplug/acpiphp_glue.c+3 -90 replies
13/13ACPI / hotplug: Do not pass ACPI handles to ACPI dock operationsdrivers/acpi/dock.c drivers/ata/libata-acpi.c drivers/pci/hotplug/acpiphp_glue.c +1 more+16 -150 replies

Reviews trailers per patch

None of the 13 patches has a Reviewed-by or Acked-by.

PatchMika Westerberg
SeriesT-b T-b T-b T-b T-b T-b T-b T-b T-b T-b T-b T-b T-b T-b T-b
1/13
2/13
3/13
4/13
5/13
6/13
7/13
8/13
9/13
10/13
11/13
12/13
13/13

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/13] ACPI / hotplug / PCI: Updates on top of changes merged recently
Quoted 17 lines · Rafael J. Wysocki

Hi All,

ACPIPHP can be simplified a bit on top of some PCI and ACPI changes merged recently and the following series of patches implements those simplifications:

[1/11] Fix up two kerneldoc comments in acpiphp_glue.c.
[2/11] Get rid of an unnecessary label in register_slot().
[3/11] Drop acpiphp_bus_trim() and use acpi_bus_trim() instead of it directly. [4/11] Move the acpi_bus_get_device() call out of acpiphp_no_hotplug(). [5/11] Store struct acpi_device pointers instead of ACPI handles in struct acpiphp_context. [6/11] Drop acpiphp_bus_add() (which has only one user).
[7/11] Drop crit_sect mutexes (that are redundant).
[8/11] Clean up the usage of the slot variable in hotplug_event().
[9/11] Drop dev_in_slot() and rework disable_slot() to walk bus->devices directly. [10/11] Use acpi_handle_debug() in hotplug_event() instead of open-coded stuff. [11/11] Drop handle argument from the member functions of struct acpi_dock_ops.

Quoted 2 lines

All of that is relateively straightforward, but I have some more intrusive changes on top of it in the works. They will be posted separately later this week.

I've learned a couple of things since I sent this patchset. First, all bus->devices list walks that may remove PCI devices should be done in reverse order or they can crash if virtual functions are involved. Second, hotplug_event() (in acpiphp_glue.c) has to acquire pci_rescan_remove_lock by itself, because it may be called from multiple places and all of them need that lock to be held. That is done by patches [1-2/13] which I'm planning to push as fixes for 3.14-rc2.

The rest is pretty much the same as last time except that the old patch [9/11] became [3/13] in this series and it has been changed so that the list is walked in reverse order.

Thanks!

Signature · 2 lines
I speak only for myself.
Rafael J. Wysocki, Intel Open Source Technology Center.