Skip to content

Commit aea1738

Browse files
marcanjannau
authored andcommitted
PCI: apple: Do not power down devices on port setup
If a device is already powered, leave it powered. Otherwise port setup done by u-boot breaks. Signed-off-by: Hector Martin <[email protected]>
1 parent 3cf2d72 commit aea1738

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/pci/controller/pcie-apple.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -598,7 +598,7 @@ static int apple_pcie_probe_port(struct device_node *np)
598598
gpiod_put(gd);
599599

600600
gd = fwnode_gpiod_get_index(of_fwnode_handle(np), "pwren", 0,
601-
GPIOD_OUT_LOW, "PWREN");
601+
GPIOD_ASIS, "PWREN");
602602
if (IS_ERR(gd)) {
603603
if (PTR_ERR(gd) != -ENOENT)
604604
return PTR_ERR(gd);
@@ -623,7 +623,7 @@ static int apple_pcie_setup_link(struct apple_pcie *pcie,
623623
return PTR_ERR(reset);
624624

625625
pwren = devm_fwnode_gpiod_get(pcie->dev, of_fwnode_handle(np), "pwren",
626-
GPIOD_OUT_LOW, "PWREN");
626+
GPIOD_ASIS, "PWREN");
627627
if (IS_ERR(pwren)) {
628628
if (PTR_ERR(pwren) == -ENOENT)
629629
pwren = NULL;

0 commit comments

Comments
 (0)