]> 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)
commit39cc3722e3d4434066edfb4246ef786ca941cc1d
tree031604c97fd1d581a5b242d9bd5cdf22be82e194
parent414cd5426f90179b5286d638cb0b56ab027ef818
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