Skip to content

PCI: Convert the Apple controller to host bridge hooks

Marc Zyngier linux-arm-kernel linux-pci lkml 1 version Applied

Status from this message: Applied to pci/controller/iommu-map for v6.14, thank you!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 4 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2PCI: host-generic: Allow {en,dis}able_device() to be provided via pci_ecam_opsdrivers/pci/controller/pci-host-common.c include/linux/pci-ecam.h+6 -01 reply
2/2PCI: apple: Convert to {en,dis}able_device() callbacksdrivers/pci/controller/pcie-apple.c+15 -601 reply

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchFrank LiManivannan Sadhasivam
SeriesR-b
1/2R-b
2/2R-b

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

Read the v1 thread

Cover letter [PATCH 0/2] PCI: Convert the Apple controller to host bridge hooks

The Apple PCIe controller requires some additional attention when enabling an endpoint device, so that the RID gets correctly mapped to a SID on its way to the IOMMU.

So far, we have need relying on a custom bus notifier to perform this task, but Frank Li's series [1] is a better approach as it puts the complexity in the core code instead of the host controller driver, and this series builds on that:

- allow the new {en,dis}able_device() to be provided via pci_ecam_ops

- convert the Apple PCIe driver to that infrastructure

Patches on top of 6.13-rc1, plus Frank's v7 series.

[1] https://lore.kernel.org/r/[email protected]

Marc Zyngier (2):
PCI: host-generic: Allow {en,dis}able_device() to be provided via
pci_ecam_ops
PCI: apple: Convert to {en,dis}able_device() callbacks

 drivers/pci/controller/pci-host-common.c |  2 +
 drivers/pci/controller/pcie-apple.c      | 75 +++++-------------------
 include/linux/pci-ecam.h                 |  4 ++
 3 files changed, 21 insertions(+), 60 deletions(-)
Signature · 1 line
2.39.2