On Tue, 13 Apr 2021 17:22:19 +0300, Dmitry Baryshkov wrote:
dw_pcie_ep_init() depends on the detected iATU region numbers to allocate the in/outbound window management bitmap. It fails after 281f1f99cf3a ("PCI: dwc: Detect number of iATU windows").
Move the iATU region detection into a new function, move the detection to the very beginning of dw_pcie_host_init() and dw_pcie_ep_init(). Also remove it from the dw_pcie_setup(), since it's more like a software initialization step than hardware setup.
[...]
Applied to pci/dwc, thanks!
[1/1] PCI: dwc: Move iATU detection earlier https://git.kernel.org/lpieralisi/pci/c/22f750acc7
Thanks, Lorenzo