Skip to content

ACPI: PCI: simplify _PRT handling

Bjorn Helgaas linux-acpi 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest20 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/20ACPI: PCI: use conventional PCI address formatdrivers/acpi/pci_bind.c drivers/acpi/pci_irq.c+11 -110 replies
2/20ACPI: PCI: remove unnecessary null pointer checksdrivers/acpi/pci_irq.c+0 -180 replies
3/20ACPI: PCI: simplify buffer management for evaluating _PRTdrivers/acpi/pci_irq.c+12 -401 reply
4/20ACPI: PCI: ignore _PRT function informationdrivers/acpi/pci_irq.c+0 -10 replies
5/20ACPI: PCI: fix GSI/IRQ naming confusiondrivers/acpi/pci_irq.c+10 -100 replies
6/20ACPI: PCI: move struct acpi_prt_entry declaration out of public header filedrivers/acpi/pci_irq.c include/linux/acpi.h+16 -160 replies
7/20ACPI: PCI: add a helper to convert _PRT INTx pin number to namedrivers/acpi/pci_irq.c+15 -100 replies
8/20ACPI: PCI: always use the PCI INTx pin values, not the _PRT onesdrivers/acpi/pci_irq.c+8 -70 replies
9/20ACPI: PCI: use 1-based encoding for _PRT quirksdrivers/acpi/pci_irq.c+6 -40 replies
10/20ACPI: PCI: lookup _PRT entry by PCI dev and pin, not segment/bus/dev/pindrivers/acpi/pci_irq.c+12 -150 replies
11/20ACPI: PCI: tweak _PRT lookup debugdrivers/acpi/pci_irq.c+7 -60 replies
12/20ACPI: PCI: remove callback from acpi_pci_irq_lookup & acpi_pci_irq_derivedrivers/acpi/pci_irq.c+36 -570 replies
13/20ACPI: PCI: use positive logic to simplify codedrivers/acpi/pci_irq.c+16 -170 replies
14/20ACPI: PCI: follow typical PCI INTx swizzling patterndrivers/acpi/pci_irq.c+7 -40 replies
15/20ACPI: PCI: combine lookup and derivedrivers/acpi/pci_irq.c+11 -440 replies
16/20ACPI: PCI: simplify list of _PRT entriesdrivers/acpi/pci_irq.c+12 -480 replies
17/20ACPI: PCI: simplify struct acpi_prt_entrydrivers/acpi/pci_irq.c+15 -200 replies
18/20ACPI: PCI: expand acpi_pci_allocate_irq() and acpi_pci_free_irq() inlinedrivers/acpi/pci_irq.c+13 -430 replies
19/20ACPI: PCI: whitespace and useless initialization cleanupdrivers/acpi/pci_irq.c+9 -190 replies
20/20ACPI: PCI: add HP copyrightdrivers/acpi/pci_irq.c+2 -00 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/20] ACPI: PCI: simplify _PRT handling

This series simplifies the code that handles ACPI _PRTs (PCI routing tables). My goal is to make this look more like the corresponding code in other architectures, especially in terms of swizzling, e.g., the various implementations of common_swizzle() and simple_swizzle(), and the x86 non-ACPI code in pirq_enable_irq().

There should be no functional changes in this series.

Comments welcome.

Bjorn

---

Bjorn Helgaas (20):
ACPI: PCI: add HP copyright
ACPI: PCI: whitespace and useless initialization cleanup
ACPI: PCI: expand acpi_pci_allocate_irq() and acpi_pci_free_irq() inline
ACPI: PCI: simplify struct acpi_prt_entry
ACPI: PCI: simplify list of _PRT entries
ACPI: PCI: combine lookup and derive
ACPI: PCI: follow typical PCI INTx swizzling pattern
ACPI: PCI: use positive logic to simplify code
ACPI: PCI: remove callback from acpi_pci_irq_lookup & acpi_pci_irq_derive
ACPI: PCI: tweak _PRT lookup debug
ACPI: PCI: lookup _PRT entry by PCI dev and pin, not segment/bus/dev/pin
ACPI: PCI: use 1-based encoding for _PRT quirks
ACPI: PCI: always use the PCI INTx pin values, not the _PRT ones
ACPI: PCI: add a helper to convert _PRT INTx pin number to name
ACPI: PCI: move struct acpi_prt_entry declaration out of public header file
ACPI: PCI: fix GSI/IRQ naming confusion
ACPI: PCI: ignore _PRT function information
ACPI: PCI: simplify buffer management for evaluating _PRT
ACPI: PCI: remove unnecessary null pointer checks
ACPI: PCI: use conventional PCI address format

 drivers/acpi/pci_bind.c |   12 +
 drivers/acpi/pci_irq.c  |  416 +++++++++++++++--------------------------------
 include/linux/acpi.h    |   16 --
 3 files changed, 136 insertions(+), 308 deletions(-)