Skip to content

Commit

Permalink
squash! PCI: apple: Avoid PERST# deassertion through gpiod initializa…
Browse files Browse the repository at this point in the history
…tion

Signed-off-by: Janne Grunau <[email protected]>
  • Loading branch information
jannau committed Sep 17, 2024
1 parent 3e83546 commit fced904
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions drivers/pci/controller/pcie-apple.c
Original file line number Diff line number Diff line change
Expand Up @@ -619,12 +619,13 @@ static int apple_pcie_setup_link(struct apple_pcie *pcie,
int ret;

/*
* Leave PERST# as is. The Aquantia AQC113 10GB nic used desktop macs is
* sensitive to deasserting it without prior clock setup.
* Assert PERST# and configure the pin as output.
* The Aquantia AQC113 10GB nic used desktop macs is sensitive to
* deasserting it without prior clock setup.
* Observed on M1 Max/Ultra Mac Studios under m1n1's hypervisor.
*/
reset = devm_fwnode_gpiod_get(pcie->dev, of_fwnode_handle(np), "reset",
GPIOD_ASIS, "PERST#");
GPIOD_OUT_HIGH, "PERST#");
if (IS_ERR(reset))
return PTR_ERR(reset);

Expand Down

0 comments on commit fced904

Please sign in to comment.