Skip to content

Commit fe50823

Browse files
committed
fixup! PCI: apple: Probe all GPIOs for availability first
Signed-off-by: Janne Grunau <j@jannau.net>
1 parent 334bfcc commit fe50823

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

drivers/pci/controller/pcie-apple.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -589,8 +589,9 @@ static int apple_pcie_probe_port(struct device_node *np)
589589
{
590590
struct gpio_desc *gd;
591591

592+
/* check whether the GPPIO pin exists but leave it as is */
592593
gd = fwnode_gpiod_get_index(of_fwnode_handle(np), "reset", 0,
593-
GPIOD_OUT_LOW, "PERST#");
594+
GPIOD_ASIS, "PERST#");
594595
if (IS_ERR(gd)) {
595596
return PTR_ERR(gd);
596597
}

0 commit comments

Comments
 (0)