Skip to content

Commit fced904

Browse files
committed
squash! PCI: apple: Avoid PERST# deassertion through gpiod initialization
Signed-off-by: Janne Grunau <j@jannau.net>
1 parent 3e83546 commit fced904

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

drivers/pci/controller/pcie-apple.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -619,12 +619,13 @@ static int apple_pcie_setup_link(struct apple_pcie *pcie,
619619
int ret;
620620

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

0 commit comments

Comments
 (0)