Skip to content

PCI: apple: Add support for t6020

Marc Zyngier asahi linux-arm-kernel linux-devicetree linux-pci lkml 2 versions – Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest13 patches 20 repliesApplied
  2. v213 patches 9 repliesSuperseded

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/13PCI: apple: Set only available ports updrivers/pci/controller/pcie-apple.c+1 -13 replies
2/13dt-bindings: pci: apple,pcie: Add t6020 compatible stringDocumentation/devicetree/bindings/pci/apple,pcie.yaml+26 -72 replies
3/13PCI: host-generic: Extract an ecam bridge creation helper from pci_host_common_probe()drivers/pci/controller/pci-host-common.c include/linux/pci-ecam.h+18 -81 reply
4/13PCI: ecam: Allow cfg->priv to be pre-populated from the root port devicedrivers/pci/ecam.c+2 -01 reply
5/13PCI: apple: Move over to standalone probingdrivers/pci/controller/pcie-apple.c+30 -241 reply
6/13PCI: apple: Dynamically allocate RID-to_SID bitmapdrivers/pci/controller/pcie-apple.c+5 -11 reply
7/13PCI: apple: Move away from INTMSK{SET,CLR} for INTx and private interruptsdrivers/pci/controller/pcie-apple.c+8 -33 replies
8/13PCI: apple: Fix missing OF node reference in apple_pcie_setup_portdrivers/pci/controller/pcie-apple.c+3 -01 reply
9/13PCI: apple: Move port PHY registers to their own reg itemsdrivers/pci/controller/pcie-apple.c+37 -181 reply
10/13PCI: apple: Drop poll for CORE_RC_PHYIF_STAT_REFCLKdrivers/pci/controller/pcie-apple.c+0 -61 reply
11/13PCI: apple: Use gpiod_set_value_cansleep in probe flowdrivers/pci/controller/pcie-apple.c+2 -21 reply
12/13PCI: apple: Abstract register offsets via a SoC-specific structuredrivers/pci/controller/pcie-apple.c+72 -171 reply
13/13PCI: apple: Add T602x PCIe supportdrivers/pci/controller/pcie-apple.c+21 -01 reply

Reviews trailers per patch

All 13 patches have a Reviewed-by or Acked-by.

PatchRob Herring (Arm)Alyssa RosenzweigJanne GrunauMark KettenisManivannan Sadhasivam
1/13R-b A-b T-b R-b
2/13R-b A-b T-b R-b A-b
3/13R-b A-b T-b R-b
4/13R-b A-b T-b R-b
5/13R-b A-b T-b R-b
6/13R-b A-b T-b R-b
7/13R-b A-b T-b R-b
8/13R-b A-b T-b R-b
9/13R-b A-b T-b R-b
10/13R-b A-b T-b R-b
11/13R-b A-b T-b R-b
12/13R-b A-b T-b R-b
13/13R-b A-b T-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 5 reviewers.

Read the v3 thread

Cover letter [PATCH v3 00/13] PCI: apple: Add support for t6020

As Alyssa didn't have the bandwidth to deal with this series, I have taken it over. All bugs are therefore mine.

The initial series [1] stated:

"This series adds T6020 support to the Apple PCIe controller. Mostly
Apple shuffled registers around (presumably to accommodate the larger configurations on those machines). So there's a bit of churn here but not too much in the way of functional changes."

The biggest change is affecting the ECAM layer, allowing an ECAM driver to provide its own probe function instead of relying on the .init() callback to do the work. The ECAM layer can therefore be used as a library instead of a convoluted driver.

The rest is a mix of bug fixes, cleanups, and required abstraction.

This has been tested on T6020 (M2-Pro mini) and T8103 (M1 mini).

* From v2[2]:

- Fixed the DT binding with new constraints specific to t6020

- Moved the "for_each_available_node()" fix to the head of the series

- Collected, RBs, TBs, ABs (thanks!)

* From v1[1]:

- Described the PHY registers in the DT binding

- Extracted a ecam bridge creation helper from the host-common layer

- Moved probing into its own function instead of pci_host_common_probe()

- Moved host-specific data to the of_device_id[] table

- Added dynamic allocation of the RID/SID bitmap

- Fixed latent bug in RC-generated interrupts

- Renamed reg_info to hw_info

- Dropped useless max_msimap

- Dropped code being moved around without justification

- Re-split some of the patches to follow a more logical progression

- General cleanup to fit my own taste

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

Alyssa Rosenzweig (1):
dt-bindings: pci: apple,pcie: Add t6020 compatible string

Hector Martin (6):
PCI: apple: Fix missing OF node reference in apple_pcie_setup_port
PCI: apple: Move port PHY registers to their own reg items
PCI: apple: Drop poll for CORE_RC_PHYIF_STAT_REFCLK
PCI: apple: Use gpiod_set_value_cansleep in probe flow
PCI: apple: Abstract register offsets via a SoC-specific structure
PCI: apple: Add T602x PCIe support

Janne Grunau (1):
PCI: apple: Set only available ports up

Marc Zyngier (5):
PCI: host-generic: Extract an ecam bridge creation helper from
pci_host_common_probe()
PCI: ecam: Allow cfg->priv to be pre-populated from the root port
device
PCI: apple: Move over to standalone probing
PCI: apple: Dynamically allocate RID-to_SID bitmap
PCI: apple: Move away from INTMSK{SET,CLR} for INTx and private
interrupts

 .../devicetree/bindings/pci/apple,pcie.yaml   |  33 ++-
 drivers/pci/controller/pci-host-common.c      |  24 +-
 drivers/pci/controller/pcie-apple.c           | 241 +++++++++++++-----
 drivers/pci/ecam.c                            |   2 +
 include/linux/pci-ecam.h                      |   2 +
 5 files changed, 220 insertions(+), 82 deletions(-)
Signature · 1 line
2.39.2