Skip to content

Commit 0abdc67

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 <marcan@marcan.st>
1 parent 8813fe7 commit 0abdc67

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/pci/controller/pcie-apple.c

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

601601
gd = fwnode_gpiod_get_index(of_fwnode_handle(np), "pwren", 0,
602-
GPIOD_OUT_LOW, "PWREN");
602+
GPIOD_ASIS, "PWREN");
603603
if (IS_ERR(gd)) {
604604
if (PTR_ERR(gd) != -ENOENT)
605605
return PTR_ERR(gd);
@@ -624,7 +624,7 @@ static int apple_pcie_setup_link(struct apple_pcie *pcie,
624624
return PTR_ERR(reset);
625625

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

0 commit comments

Comments
 (0)