linux-mips
[Top] [All Lists]

Re: USB hangs on AU1100

To: "'linux-mips@linux-mips.org'" <linux-mips@linux-mips.org>
Subject: Re: USB hangs on AU1100
From: Thiemo Seufer <ths@networkno.de>
Date: Thu, 5 May 2005 19:20:17 +0200
In-reply-to: <1115311361.1614.6.camel@localhost.localdomain>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <20050505155435.GA28227@enneenne.com> <1115311361.1614.6.camel@localhost.localdomain>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mutt/1.5.9i
Pete Popov wrote:
> On Thu, 2005-05-05 at 17:54 +0200, Rodolfo Giometti wrote:
> > Hello,
> > 
> > I'm just using USB host support on a AU1100 developing board (DB1100
> > configuration) and i notice that CPU locks in function
> > au1xxx_start_hc():
> > 
> >         /* wait for reset complete (read register twice; see au1500 errata) 
> > */
> >         while (au_readl(USB_HOST_CONFIG),
> >                 !(au_readl(USB_HOST_CONFIG) & USBH_ENABLE_RD))
> >                 udelay(1000);
> > 
> > while waiting for USB controller to reset. I checked it out and I
> > discovered that register USB_HOST_CONFIG is fixed at value 0xe! So the
> > controller never reset...
> > 
> > Linux is 2.6.12-rc3 from CVS.
> > 
> > Someone knows whats wrong?
> 
> It sounds like this is a custom Au1100 based board? What boot code are
> you running?  I'm guessing the SOC isn't setup correctly or you have a
> HW problem.

I wonder if the code works reliable. At least, a comma operator isn't a
sequence point, which means the compiler is free to change the execution
order.


Thiemo

<Prev in Thread] Current Thread [Next in Thread>