Skip to contentSkip to conversation

Juno: don't print PCI debug information by default

PATCH In review Andre Przywara 3 participants 3 messages Nov 13, 2015 – Nov 22, 2015 Arm/versatile express platform

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Juno: don't print PCI debug information by default

On a Juno r1 the PCI controller init routine outputs the rather boring ATR entry information.
Do this only with DEBUG defined to avoid cluttering the user's terminal.

---
 board/armltd/vexpress64/pcie.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
board/armltd/vexpress64/pcie.c +1 -1
index 7b999e8..eb23dd5 100644
@@ -87,7 +87,7 @@ void xr3pci_set_atr_entry(unsigned long base, unsigned long src_addr,
 	writel((u32)(trsl_addr >> 32), base + XR3PCI_ATR_TRSL_ADDR_HIGH);
 	writel(trsl_param, base + XR3PCI_ATR_TRSL_PARAM);
 
-	printf("ATR entry: 0x%010lx %s 0x%010lx [0x%010llx] (param: 0x%06x)\n",
+	debug("ATR entry: 0x%010lx %s 0x%010lx [0x%010llx] (param: 0x%06x)\n",
 	       src_addr, (trsl_param & 0x400000) ? "<-" : "->", trsl_addr,
 	       ((u64)1) << window_size, trsl_param);
 }
Signature · 1 line
2.5.1
#1 lore raw

PATCH 1/1 Juno: don't print PCI debug information by default

Quoted 4 lines · Andre Przywara

On a Juno r1 the PCI controller init routine outputs the rather boring ATR entry information.
Do this only with DEBUG defined to avoid cluttering the user's terminal.

Good idea.

Quoted 2 lines
Quoted 20 lines
---
 board/armltd/vexpress64/pcie.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
board/armltd/vexpress64/pcie.c +1 -2
index 7b999e8..eb23dd5 100644
@@ -87,7 +87,7 @@ void xr3pci_set_atr_entry(unsigned long base, unsigned long src_addr,
        writel((u32)(trsl_addr >> 32), base + XR3PCI_ATR_TRSL_ADDR_HIGH);
        writel(trsl_param, base + XR3PCI_ATR_TRSL_PARAM);
 
-       printf("ATR entry: 0x%010lx %s 0x%010lx [0x%010llx] (param: 0x%06x)\n",
+       debug("ATR entry: 0x%010lx %s 0x%010lx [0x%010llx] (param: 0x%06x)\n",
               src_addr, (trsl_param & 0x400000) ? "<-" : "->", trsl_addr,
               ((u64)1) << window_size, trsl_param);
 }
--

2.5.1

#2 lore raw
In reply to Andre Przywara
Quoted 7 lines · Andre Przywara

On a Juno r1 the PCI controller init routine outputs the rather boring ATR entry information.
Do this only with DEBUG defined to avoid cluttering the user's terminal.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20151122/91e006f4/attachment.sig>