Hi,

sorry for the late answer, I needed some time ...

Am Saturday 28 October 2006 07:50 schrieb Oliver Neukum:
> This leaves me with the task of explaining why added code
> that isn't called can hang a computer. Just to be sure could
> you try removing the entries for suspend & resume from
> usblp_driver ?

uspend and resume works again with the following patch:

diff --git a/drivers/usb/class/usblp.c b/drivers/usb/class/usblp.c
index 809d465..8b66196 100644
--- a/drivers/usb/class/usblp.c
+++ b/drivers/usb/class/usblp.c
@@ -1203,7 +1203,7 @@ static int usblp_suspend (struct usb_int
        /* we take no more IO */
        usblp->sleeping = 1;
        /* we wait for anything printing */
-       wait_event (usblp->wait, usblp->wcomplete || !usblp->present);
+       //wait_event (usblp->wait, usblp->wcomplete || !usblp->present);
        usblp_unlink_urbs(usblp);
        up (&usblp->sem);
        mutex_unlock (&usblp_mutex);

As an alternative, removing the line
.suspend =      usblp_suspend,
works too :-).

-- 
MfG/Sincerely

Toralf Förster
+++ I'm not subscribed to the email list, please Cc: me +++

Attachment: pgpn2TuECviYZ.pgp
Description: PGP signature

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to