pci: pci_mvebu: Split initialization of PCIe ports into 3 phases
authorPali Rohár <pali@kernel.org>
Tue, 21 Dec 2021 11:20:16 +0000 (12:20 +0100)
committerStefan Roese <sr@denx.de>
Fri, 14 Jan 2022 06:47:57 +0000 (07:47 +0100)
commitafef9f4215c9e2ce968734d6b9993ce8c4cffa5f
tree57505079aa54d0f9d30d33515aa9a92443c33ac8
parent137db2af147979dc27d912e0567e7953a9380df3
pci: pci_mvebu: Split initialization of PCIe ports into 3 phases

In first phase just parse DT properties and fill struct mvebu_pcie. In
second phase setup all PCIe links (without enabling them). And in the last
third phase enable all PCIe links and create UCLASS_PCI device for each
one.

Because parsing of DT is done before UCLASS_PCI is created, we cannot use
DM for this action anymore. So remove .of_to_plat callback and replace it
by ad-hoc function for parsing DT properties and filling struct mvebu_pcie.

Signed-off-by: Pali Rohár <pali@kernel.org>
drivers/pci/pci_mvebu.c