Skip to content

Commit

Permalink
PCI: j721e: Add reset GPIO to struct j721e_pcie
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
tleb authored and kwilczynski committed Sep 3, 2024
1 parent 7d7ce74 commit b8600b8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/pci/controller/cadence/pci-j721e.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ struct j721e_pcie {
u32 mode;
u32 num_lanes;
u32 max_lanes;
struct gpio_desc *reset_gpio;
void __iomem *user_cfg_base;
void __iomem *intd_cfg_base;
u32 linkdown_irq_regfield;
Expand Down Expand Up @@ -545,6 +546,7 @@ static int j721e_pcie_probe(struct platform_device *pdev)
ret = dev_err_probe(dev, PTR_ERR(gpiod), "Failed to get reset GPIO\n");
goto err_get_sync;
}
pcie->reset_gpio = gpiod;

ret = cdns_pcie_init_phy(dev, cdns_pcie);
if (ret) {
Expand Down

0 comments on commit b8600b8

Please sign in to comment.