linux-mips
[Top] [All Lists]

Re: usb-problems with Au1000

To: linux-mips@oss.sgi.com
Subject: Re: usb-problems with Au1000
From: Kunihiko IMAI <kimai@laser5.co.jp>
Date: Thu, 17 Jan 2002 19:36:24 +0900
In-reply-to: <3C3DD208.45B5BC29@esk.fhg.de>
References: <3B7DA3A3.8010000@pacbell.net> <3C3DD208.45B5BC29@esk.fhg.de>
Sender: owner-linux-mips@oss.sgi.com
User-agent: Wanderlust/2.4.0 (Rio) SEMI/1.13.7 (Awazu) CLIME/1.13.6 (中ノ庄) Emacs/20.7 (i386-laser5-linux-gnu) MULE/4.1 (AOI)
Hi,

I'm trying SGI version of kernel-2.2.17.
And I get same message,

At Thu, 10 Jan 2002 18:40:24 +0100,
Wolfgang Heidrich wrote:

> hub.c: USB new device connect on bus1/1, assigned device number 3
> usb.c: USB device not accepting new address=3 (error=-145)

when connect some device.


I checked in some cases:

- Some devices are recognized, some are not.
        A joystick device (sanwa supply) works fine.
        A mouse device (century corp.) works too.
        But another mouse (Logitech Mini Wheel Mouse) doesn't work and
                I got message like above.

- When connected via USB hub device, Logitech mouse works fine.

I think USB root HUB doesn't work properly.


By the way:

today, I got a errata document from the chip dealer.  This document
reports some USB errata.
I read the report and source code, then  I found a bug in
arch/mips/au1000/pb1000/setup.c.


The errata report says workaround method:
- set the CPU clock is 384MHz
- set the source of USB host controller is CPU clcck.

And the code:

        /*
         * Setup 48MHz FREQ2 from CPUPLL for USB Host
         */
        /* FRDIV2=3 -> div by 8 of 384MHz -> 48MHz */
        sys_freqctrl |= ((3<<22) | (1<<21) | (0<<20));
        outl(sys_freqctrl, FQ_CNTRL_1);

Comment says "Setup FREQ2" but the code set FREQ5.

        outl(sys_freqctrl, FQ_CNTRL_1);

should be 

        outl(sys_freqctrl, FQ_CNTRL_0);

Also formar line:

        sys_freqctrl = inl(FQ_CNTRL_1);

should be

        sys_freqctrl = inl(FQ_CNTRL_0);


Thanks.
_._. __._  _ . ... _  .___ ._. _____ _... ._ _._ _.._. .____  _ . ... _

                                                          Kunihiko IMAI

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