On Monday 21 February 2005 2:24 pm, Chris Clayton wrote:
> On Sun, 20 Feb 2005 08:39:51 +0000
> Chris Clayton <[EMAIL PROTECTED]> wrote:
> 
> > Hi again.
> > 
> > My word, I've put some hours into this, but I now have a 2.6.10 kernel with 
> > which the built-in USB port on my Compaq Armada 7400 works. So far that is, 
> > I 
> > want to do a bit more work on fine tuning the duration of the delays I have 
> > added to host/ohci-q.c::finish_unlinks() - 5 millseconds only works some of 
> > the time, 10 milliseconds seems to work all of the time. 
> 
> Mmm, spoke a bit too soon. Trying to find the sweet spot between 5 and 10
> millisecs, I'm currently at ...... 20 milliseconds. I had done some testing
> yesterday, copying 5-6MB files to and from compact flash and over the
> wireless network, and all was OK. However, tonight I've been copying a
> kernel tarball around and getting timeouts again, so it looks like I've
> got some more work to do. Sorry for the noise :)     

That suggests a timeout isn't exactly the issue here ... it'd be more at
the level of that (old) silicon wanting to get some register written, or
maybe cleared.

Random notion:  before writing a new control or bulk list head, write a
zero into that register and spin (up to a millisecond) until the next frame
has started.   One of the more subtle changes in that group of patches
changed some behavior in that area, getting rid of a race.  It's possible
that the reason some earler code clobbered that register was because it
was trying to run on hardware that misbehaved otherwise.

 
> I would still value guidance on the questions I asked yetserday though.

If you can find some approach that works reliably, I think the right way
to package it would be by defining a new quirk flag and kicking in the
logic that's needed on your chip.  Then set that flag when the PCI probe
detects this particular PCI vendor/product and this revision (or older).

That way if someone sticks a "modern" CardBus controller into that laptop,
this workaround would only apply to the built-in controller.

- Dave



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to