]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: brcmstb: Split post-link up initialization to brcm_pcie_start_link()
authorJim Quinlan <jim2101024@gmail.com>
Mon, 25 Jul 2022 15:12:51 +0000 (11:12 -0400)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 27 Jul 2022 16:52:59 +0000 (11:52 -0500)
commitcfa41c94f0cbb3eeb11540b9b85efe9090a06f39
tree68af4d35d986bf73bb6039e25784a1709369aa93
parent4d75664da062dc4929abbe2fc4101929d160043a
PCI: brcmstb: Split post-link up initialization to brcm_pcie_start_link()

Previously brcm_pcie_setup() initialized the Root Port itself as well as
doing the actual link-up.  Split brcm_pcie_setup() into two functions:

  - brcm_pcie_setup(), which initializes everything that does not require
    the link itself to be up, and

  - brcm_pcie_start_link(), which brings up the link and initializes things
    that depend on the link being up.

[bhelgaas: condense commit log, deferring details for future changes]
Link: https://lore.kernel.org/r/20220725151258.42574-3-jim2101024@gmail.com
Signed-off-by: Jim Quinlan <jim2101024@gmail.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Tested-by: Florian Fainelli <f.fainelli@gmail.com>
drivers/pci/controller/pcie-brcmstb.c