Skip to content

PCI: apple: PWREN GPIO support & related fixes

Hector Martin linux-pci lkml stable 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 12 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3PCI: apple: GPIO handling nitfixesdrivers/pci/controller/pcie-apple.c+4 -43 replies
2/3PCI: apple: Probe all GPIOs for availability firstdrivers/pci/controller/pcie-apple.c+24 -01 reply
3/3PCI: apple: Add support for optional PWREN GPIOdrivers/pci/controller/pcie-apple.c+32 -38 replies

Reviews trailers per patch

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

PatchMarc Zyngier
1/3A-b
2/3A-b
3/3A-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/3] PCI: apple: PWREN GPIO support & related fixes

Hi all,

This short series adds support for the PWREN GPIO to the Apple PCIe controller driver, and along the way fixes some GPIO handling issues which cropped up.

Since the PWREN GPIO is provided by SMC which is a fairly high level driver, PCI can probe before it is ready. Worse, only some devices need PWREN, which can make the probe fail halfway through with some ports initialized and not others, which the driver cannot recover gracefully from. The second patch fixes this situation, so probe deferral works properly in these cases. The third patch adds PWREN support per se, and the first one is just related stuff I noticed while writing this.

Hector Martin (3):
PCI: apple: GPIO handling nitfixes
PCI: apple: Probe all GPIOs for availability first
PCI: apple: Add support for optional PWREN GPIO

 drivers/pci/controller/pcie-apple.c | 67 ++++++++++++++++++++++++++---
 1 file changed, 60 insertions(+), 7 deletions(-)
Signature · 1 line
2.35.1