pci: layerscape-ep: Add check of the PCIe controller enablement
authorHou Zhiqiang <Zhiqiang.Hou@nxp.com>
Thu, 13 May 2021 06:54:32 +0000 (14:54 +0800)
committerPriyanka Jain <priyanka.jain@nxp.com>
Thu, 17 Jun 2021 06:16:11 +0000 (11:46 +0530)
commit8e221b4a1c3144bbc0fcbb5a6c40ba63d618f02f
treef5e460907fc097f66ccf27c11c4abbc9071d7e83
parentff64e9a9f0f48107a46536c251951885df63d63f
pci: layerscape-ep: Add check of the PCIe controller enablement

Stop to initialize the PCIe controller if it's disabled by RCW.

Fixes: 118e58e26eba ("pci: layerscape: Split the EP and RC driver")
Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com>
Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
drivers/pci/pcie_layerscape_ep.c