]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: brcmstb: Split brcm_pcie_setup() into two funcs
authorJim Quinlan <jim2101024@gmail.com>
Thu, 6 Jan 2022 16:03:27 +0000 (11:03 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 12 Jan 2022 19:45:50 +0000 (13:45 -0600)
commit1c2e8d65dc68f9ea2941a586aa2f2f3b685ebbb4
tree031604c97fd1d581a5b242d9bd5cdf22be82e194
parent3949af8c8077bd6f614e49de8a46f6c92ed89985
PCI: brcmstb: Split brcm_pcie_setup() into two funcs

We need to take some code in brcm_pcie_setup() and put it in a new function
brcm_pcie_linkup().  In future commits the brcm_pcie_linkup() function will
be called indirectly by pci_host_probe() as opposed to the host driver
invoking it directly.

Some code that was executed after the PCIe linkup is now placed so that it
executes prior to linkup, since this code has to run prior to the
invocation of pci_host_probe().

Link: https://lore.kernel.org/r/20220106160332.2143-5-jim2101024@gmail.com
Signed-off-by: Jim Quinlan <jim2101024@gmail.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/controller/pcie-brcmstb.c