On Sun, 21 Mar 2004, Lukas Hejtmanek wrote:
> On Sat, Mar 20, 2004 at 03:38:21PM -0500, Alan Stern wrote:
> > In the meantime, just don't rmmod uhci_hcd while running X with a USB
> > mouse!
>
> I would not do that but it is needed for suspend to disk as USB does not resume
> correctly. Rmmod and modprobe helps if it does not seg fault.
The patch below isn't a complete solution, but it may help fix your
problem. Let me know how it behaves.
Alan Stern
===== drivers/usb/host/uhci-hcd.c 1.97 vs edited =====
--- 1.97/drivers/usb/host/uhci-hcd.c Wed Mar 17 14:16:48 2004
+++ edited/drivers/usb/host/uhci-hcd.c Mon Mar 22 10:12:59 2004
@@ -2424,12 +2424,14 @@
* At this point, we're guaranteed that no new connects can be made
* to this bus since there are no more parents
*/
+
+ reset_hc(uhci);
+
local_irq_save(flags);
uhci_free_pending_qhs(uhci);
uhci_free_pending_tds(uhci);
uhci_remove_pending_urbps(uhci);
-
- reset_hc(uhci);
+ uhci_finish_completion(hcd, NULL);
uhci_free_pending_qhs(uhci);
uhci_free_pending_tds(uhci);
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel