On Mon, Dec 08, 2003 at 04:37:26PM -0500, Alan Stern wrote:
> 
> That's supposed to work right now.  However, there may be a problem with 
> the uhci_stop() routine.  While I haven't checked this in detail, it 
> appears that the first calls to uhci_free_pending_qhs() and 
> uhci_free_pending_tds() may be unnecessary, while there ought to be a call 
> to uhci_finish_completion() just after the reset_hc().

Unfortunately this doesn't fix the problem that I was seeing.

The problem here is the khubd is stuck in usb_set_address() waiting
for the URB to complete, but it never finishes because the UHCI driver
isn't getting any interrupts.

Unloading UHCI gets stuck because usb_disconnect() is called before
uhci_stop() and usb_disconnect() can't finish because khubd is holding
its semaphore.
 
> I suspect your patch is not really needed.  Try implementing what I said 
> above and see if it helps.  Better yet, go through the code in uhci_stop() 
> more carefully than I did and figure out what it really should be doing.

This makes sense.  But we'll need to resolve issues like the above
before it'll work.

Cheers,
-- 
Debian GNU/Linux 3.0 is out! ( http://www.debian.org/ )
Email:  Herbert Xu ~{PmV>HI~} <[EMAIL PROTECTED]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt


-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&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