Skip to contentSkip to conversation

driver/fsl_pci:Update print to display PCIe generation

PATCH New Prabhakar Kushwaha 2 participants 2 messages Jan 25, 2014 – Feb 3, 2014 PCI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 driver/fsl_pci:Update print to display PCIe generation

Current print only display width of PCIe device. Add print to display PCIe generation supported by the device.

---
 drivers/pci/fsl_pci_init.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/pci/fsl_pci_init.c +2 -2
index 2085cd6..6317fb1 100644
@@ -510,8 +510,8 @@ void fsl_pci_init(struct pci_controller *hose, struct fsl_pci_info *pci_info)
 
 		/* Print the negotiated PCIe link width */
 		pci_hose_read_config_word(hose, dev, pci_lsr, &temp16);
-		printf("x%d, regs @ 0x%lx\n", (temp16 & 0x3f0 ) >> 4,
-			pci_info->regs);
+		printf("x%d gen%d, regs @ 0x%lx\n", (temp16 & 0x3f0) >> 4,
+		       (temp16 & 0xf), pci_info->regs);
 
 		hose->current_busno++; /* Start scan with secondary */
 		pciauto_prescan_setup_bridge(hose, dev, hose->current_busno);
Signature · 1 line
1.7.9.5
#1 lore raw

PATCH 1/1 driver/fsl_pci:Update print to display PCIe generation

Quoted 5 lines · Prabhakar Kushwaha

Current print only display width of PCIe device. Add print to display PCIe generation supported by the device.

---

Applied to u-boot-mpc85xx master branch.

York