Skip to contentSkip to conversation

ehci-pci: print hccr, hcor and hc_lenght

PATCH New Florian Fainelli 2 participants 2 messages Oct 15, 2010 – Oct 16, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 ehci-pci: print hccr, hcor and hc_lenght

It is useful to know the EHCI-PCI hccr, hcor and hc_lenght to make sure it was successfully registered, and at the correct location.

---
Changes since v1:
- replaced printf by debug

drivers/usb/host/ehci-pci.c +4 -0
index 047902a..cff3438 100644
@@ -53,6 +53,10 @@ int ehci_hcd_init(void)
 	hcor = (struct ehci_hcor *)((uint32_t) hccr +
 			HC_LENGTH(ehci_readl(&hccr->cr_capbase)));
 
+	debug("EHCI-PCI init hccr 0x%x and hcor 0x%x hc_length %d\n",
+			(uint32_t)hccr, (uint32_t)hcor,
+			(uint32_t)HC_LENGTH(ehci_readl(&hccr->cr_capbase)));
+
 	return 0;
 }
 
#1 lore raw

PATCH v2 1/1 ehci-pci: print hccr, hcor and hc_lenght

Hi,

2010/10/15 Florian Fainelli <[email protected]>:

Quoted 16 lines

It is useful to know the EHCI-PCI hccr, hcor and hc_lenght to make sure it was successfully registered, and at the correct location.

---
Changes since v1:
- replaced printf by debug

drivers/usb/host/ehci-pci.c +0 -0
index 047902a..cff3438 100644
@@ -53,6 +53,10 @@ int ehci_hcd_init(void)

? ? ? ?hcor = (struct ehci_hcor *)((uint32_t) hccr +
? ? ? ? ? ? ? ? ? ? ? ?HC_LENGTH(ehci_readl(&hccr->cr_capbase)));

Quoted 6 lines

+ ? ? ? debug("EHCI-PCI init hccr 0x%x and hcor 0x%x hc_length %d\n",
+ ? ? ? ? ? ? ? ? ? ? ? (uint32_t)hccr, (uint32_t)hcor,
+ ? ? ? ? ? ? ? ? ? ? ? (uint32_t)HC_LENGTH(ehci_readl(&hccr->cr_capbase))); +
? ? ? ?return 0;
?}

Applied to u-boot-usb.
Thanks.

Remy