mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 18:41:58 +09:00
PCI: j721e: Add reset GPIO to struct j721e_pcie
[ Upstream commit b8600b8791cb2b7c8be894846b1ecddba7291680 ] Add reset GPIO to struct j721e_pcie, so it can be used at suspend and resume stages. Link: https://lore.kernel.org/linux-pci/20240102-j7200-pcie-s2r-v7-4-a2f9156da6c3@bootlin.com Signed-off-by: Théo Lebrun <theo.lebrun@bootlin.com> Signed-off-by: Thomas Richard <thomas.richard@bootlin.com> Signed-off-by: Krzysztof Wilczyński <kwilczynski@kernel.org> Stable-dep-of: 22a9120479a4 ("PCI: j721e: Deassert PERST# after a delay of PCIE_T_PVPERL_MS milliseconds") Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
762de2993b
commit
0a289ca902
@@ -52,6 +52,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;
|
||||
@@ -488,6 +489,7 @@ static int j721e_pcie_probe(struct platform_device *pdev)
|
||||
dev_err(dev, "Failed to get reset GPIO\n");
|
||||
goto err_get_sync;
|
||||
}
|
||||
pcie->reset_gpio = gpiod;
|
||||
|
||||
ret = cdns_pcie_init_phy(dev, cdns_pcie);
|
||||
if (ret) {
|
||||
|
||||
Reference in New Issue
Block a user