From mboxrd@z Thu Jan 1 00:00:00 1970 From: Florian Fainelli Date: Sun, 12 Sep 2010 14:24:25 +0200 Subject: [U-Boot] [PATCH] ehci-pci: print hccr, hcor and hc_lenght In-Reply-To: References: <201004231041.12875.f.fainelli@gmail.com> Message-ID: <201009121424.27604.f.fainelli@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Remy, Le Sunday 12 September 2010 12:01:18, Remy Bohmer a ?crit : > Hi Florian, > > 2010/4/23 Florian Fainelli : > > 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. > > > > Signed-off-by: Florian Fainelli > > --- > > diff --git a/drivers/usb/host/ehci-pci.c b/drivers/usb/host/ehci-pci.c > > index 047902a..4402abb 100644 > > --- a/drivers/usb/host/ehci-pci.c > > +++ b/drivers/usb/host/ehci-pci.c > > @@ -53,6 +53,10 @@ int ehci_hcd_init(void) > > hcor = (struct ehci_hcor *)((uint32_t) hccr + > > HC_LENGTH(ehci_readl(&hccr->cr_capbase))); > > > > + printf("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))); + > > I guess I missed this patch... No problem. > Should the 'printf' not be a 'debug' statement? I think so, I will respin this patch. Thanks! -- Florian