[EMAIL PROTECTED] wrote:
Hi,

     I have a situation here.  I am porting the USB 2.0 driver to ADM5120,
it's a MIPS32 CPU.  I've successfully made patch files to upgrade USB 2.0
driver in Linux 2.4.18 to Linux 2.4.24.  The system can find out my USB 2.0
PCI card without problems. (VIA VT6202)

I think the newer EHCI code (including the version with MIPS patches from BroadCom) needed some usbcore changes too. Use a newer kernel if you can; I'm told they work out-of-the-box on MIPS. (Though maybe not yet on ADM5120...) I think maybe 2.4.22 would be OK, but 2.4.18 is quite old now.

The VT6202 has always been problematic though; it's never behaved
well under heavy load.  I think it likes to have the OS talk to
it with particular timings ... the watchdog timer seems to be
essential on many VIA chips, to cope with IRQs that never arrive,
and that's another issue.  Some folk have success with it, but
it's not a chip I'd recommend.  (VT6212 is much better, if you
need a discrete VIA EHCI.)


     The problems is: when I hook my USB 2.0 device, it always time-out
during set device address.  I've trace the actions when plug it into

You only have one USB 2.0 device to test with? More would be better. Especially if you're trying to get a buggy device to work. If you can swap in a PCI card, also try a NEC EHCI card; fewer problems.


windows platform, and I notice the windows driver perform a get descriptor
operation before set address.  Strange thing is, after I add a
usb_get_descriptor() before usb_set_address(), although the get descriptor
operation still time-out, but the set address operation works without
problem.  The ehci_watchdog() function won't wake up if I don't get
descriptor first.

Sounds like the device is buggy. But then it also sounds like you have some other problems going on too.

Are you sure you're getting IRQs to that controller?  The 2.6 kernels
will print diagnostics specifically about IRQ lossage, which is sadly
common because of PCI initialization issues.

- Dave






------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to