diff options
author | 2024-06-19 12:15:10 +0200 | |
---|---|---|
committer | 2024-09-03 18:27:14 +0000 | |
commit | 063c938928dc80c2bfd66f34df48344db22e009b (patch) | |
tree | 71a2606162fe9b6b1975e1eb0317c2318c66cecb /drivers/pci/controller/cadence/pcie-cadence-host.c | |
parent | PCI: cadence: Extract link setup sequence from cdns_pcie_host_setup() (diff) | |
download | wireguard-linux-063c938928dc80c2bfd66f34df48344db22e009b.tar.xz wireguard-linux-063c938928dc80c2bfd66f34df48344db22e009b.zip |
PCI: cadence: Set cdns_pcie_host_init() global
During the resume sequence of the host, cdns_pcie_host_init() needs to be
called, so set it global.
The dev function parameter is removed, as it isn't used.
Link: https://lore.kernel.org/linux-pci/20240102-j7200-pcie-s2r-v7-2-a2f9156da6c3@bootlin.com
Signed-off-by: Thomas Richard <thomas.richard@bootlin.com>
Signed-off-by: Krzysztof Wilczyński <kwilczynski@kernel.org>
Reviewed-by: Siddharth Vadapalli <s-vadapalli@ti.com>
Diffstat (limited to '')
-rw-r--r-- | drivers/pci/controller/cadence/pcie-cadence-host.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/pci/controller/cadence/pcie-cadence-host.c b/drivers/pci/controller/cadence/pcie-cadence-host.c index 93d9922730af..8af95e9da7ce 100644 --- a/drivers/pci/controller/cadence/pcie-cadence-host.c +++ b/drivers/pci/controller/cadence/pcie-cadence-host.c @@ -485,8 +485,7 @@ static int cdns_pcie_host_init_address_translation(struct cdns_pcie_rc *rc) return cdns_pcie_host_map_dma_ranges(rc); } -static int cdns_pcie_host_init(struct device *dev, - struct cdns_pcie_rc *rc) +int cdns_pcie_host_init(struct cdns_pcie_rc *rc) { int err; @@ -564,7 +563,7 @@ int cdns_pcie_host_setup(struct cdns_pcie_rc *rc) for (bar = RP_BAR0; bar <= RP_NO_BAR; bar++) rc->avail_ib_bar[bar] = true; - ret = cdns_pcie_host_init(dev, rc); + ret = cdns_pcie_host_init(rc); if (ret) return ret; |