summaryrefslogtreecommitdiff
path: root/drivers/pci
diff options
context:
space:
mode:
authorZang Roy-R61911 <tie-fei.zang@freescale.com>2014-06-12 14:49:23 -0500
committerYork Sun <yorksun@freescale.com>2014-07-22 16:25:54 -0700
commit32514d259bf37cc92872aeb0624b75f600e7fb3a (patch)
tree5fd472ea8ce6082338fd163e2948a8cba1402e2f /drivers/pci
parent04818bbdc34cb02b2590af8e5f77118ed8a8d755 (diff)
downloadu-boot-32514d259bf37cc92872aeb0624b75f600e7fb3a.tar.gz
u-boot-32514d259bf37cc92872aeb0624b75f600e7fb3a.tar.bz2
u-boot-32514d259bf37cc92872aeb0624b75f600e7fb3a.zip
fsl/pcie: Change 'no link' to 'undetermined' for pcie endpoint
Even u-boot boots up, the pcie link may not setup correctly when Freescale SOC acts as endpoint. So change the link status from 'no link' to 'undetermined' to reduce the confusion. The link status can check from host side eventually. Signed-off-by: Roy Zang <tie-fei.zang@freescale.com> Reviewed-by: York Sun <yorksun@freescale.com>
Diffstat (limited to 'drivers/pci')
-rw-r--r--drivers/pci/fsl_pci_init.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/drivers/pci/fsl_pci_init.c b/drivers/pci/fsl_pci_init.c
index 3a41b0ec17..231b07573f 100644
--- a/drivers/pci/fsl_pci_init.c
+++ b/drivers/pci/fsl_pci_init.c
@@ -504,8 +504,14 @@ void fsl_pci_init(struct pci_controller *hose, struct fsl_pci_info *pci_info)
}
#endif
if (!enabled) {
- /* Let the user know there's no PCIe link */
- printf("no link, regs @ 0x%lx\n", pci_info->regs);
+ /* Let the user know there's no PCIe link for root
+ * complex. for endpoint, the link may not setup, so
+ * print undetermined.
+ */
+ if (fsl_is_pci_agent(hose))
+ printf("undetermined, regs @ 0x%lx\n", pci_info->regs);
+ else
+ printf("no link, regs @ 0x%lx\n", pci_info->regs);
hose->last_busno = hose->first_busno;
return;
}