]> 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)
commit4d5533fc6dc70842e3f265e47ddfede6376f7835
tree68af4d35d986bf73bb6039e25784a1709369aa93
parentc5fb97ad3e3ecae7603e24f53ec8908c1b7d913d
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