Skip to content

Commit b8600b8

Browse files
tlebkwilczynski
authored andcommitted
PCI: j721e: Add reset GPIO to struct j721e_pcie
Add reset GPIO to struct j721e_pcie, so it can be used at suspend and resume stages. Link: https://lore.kernel.org/linux-pci/[email protected] Signed-off-by: Théo Lebrun <[email protected]> Signed-off-by: Thomas Richard <[email protected]> Signed-off-by: Krzysztof Wilczyński <[email protected]>
1 parent 7d7ce74 commit b8600b8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/pci/controller/cadence/pci-j721e.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ struct j721e_pcie {
5353
u32 mode;
5454
u32 num_lanes;
5555
u32 max_lanes;
56+
struct gpio_desc *reset_gpio;
5657
void __iomem *user_cfg_base;
5758
void __iomem *intd_cfg_base;
5859
u32 linkdown_irq_regfield;
@@ -545,6 +546,7 @@ static int j721e_pcie_probe(struct platform_device *pdev)
545546
ret = dev_err_probe(dev, PTR_ERR(gpiod), "Failed to get reset GPIO\n");
546547
goto err_get_sync;
547548
}
549+
pcie->reset_gpio = gpiod;
548550

549551
ret = cdns_pcie_init_phy(dev, cdns_pcie);
550552
if (ret) {

0 commit comments

Comments
 (0)