It is the printer,

I testet the current git sources with the following 3 devices:

input: Austgame USB FLYING STICK as /class/input/input4
input: Logitech USB-PS/2 Optical Mouse as /class/input/input1
SCSI device sda: 256000 512-byte hdwr sectors (131 MB)

connected to a 4-port USB hub from Saitek which was plugged into my notebook : 
supend/resume works fine.

If I added theUSB printer either alone or together with the other devices : 
suspend hangs with the described symptoms.


> I know that type. Once the ink runs out you throw it away ;-)
That's right, but b/c the printer was cheaper than the 2 inks alone I bought it 
with the ink *shame*
- I'm no longer wondering about the climate change.

-- 
MfG/Sincerely

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


Am Friday 27 October 2006 19:30 schrieb Oliver Neukum:
> Am Freitag, 27. Oktober 2006 19:11 schrieben Sie:
> > Am Friday 27 October 2006 01:36 schrieben Sie:
> > > Which printer?
> > > Does it work if you unplug while it seems to hang?
> > > Could you add a printk before and after the wait_event() line in 
> > > usblp_suspend() ?
> > > 
> > >   Regards
> > >           Oliver
> > Hi Oliver,
> > 
> > here are my changes to the current git tree of Linus:
> > 
> > commit e80391500078b524083ba51c3df01bbaaecc94bb
> > Merge: 2a4f739... 012d64f...
> > Author: Linus Torvalds <[EMAIL PROTECTED]>
> > Date:   Thu Oct 26 07:44:41 2006 -0700
> > 
> >     Merge master.kernel.org:/pub/scm/linux/kernel/git/davem/sparc-2.6
> > 
> > 
> > diff --git a/drivers/usb/class/usblp.c b/drivers/usb/class/usblp.c
> > index 809d465..5632e38 100644
> > --- a/drivers/usb/class/usblp.c
> > +++ b/drivers/usb/class/usblp.c
> > @@ -1198,13 +1198,19 @@ static int usblp_suspend (struct usb_int
> >         struct usblp *usblp = usb_get_intfdata (intf);
> > 
> >         /* this races against normal access and open */
> > +       printk(KERN_INFO "Hello 1");
> 
> You didn't even see this one?
> 
> >         mutex_lock (&usblp_mutex);
> > +       printk(KERN_INFO "Hello 2");
> >         down (&usblp->sem);
> >         /* we take no more IO */
> > +       printk(KERN_INFO "Hello 3");
> >         usblp->sleeping = 1;
> >         /* we wait for anything printing */
> > +       printk(KERN_INFO "Hello 4");
> >         wait_event (usblp->wait, usblp->wcomplete || !usblp->present);
> > +       printk(KERN_INFO "Hello 5");
> >         usblp_unlink_urbs(usblp);
> > +       printk(KERN_INFO "Hello 6");
> >         up (&usblp->sem);
> >         mutex_unlock (&usblp_mutex);
> > 
> > 
> > In short, I haven't seen any of this message while the printer is plugged 
> > in during suspend.
> 
> This is very odd, as it would mean that the modification to the printer
> driver is not to blame.
> 
> > If I unplugged the USB cable after "echo -n mem > /sys/power/state" no 
> > further action/message
> > was observed.
> 
> Yes, this is to be expected. I thought wait_event() hangs. If it doesn't,
> unplugging won't help.
> 
> > Although I could change the console via Ctrl+Alt+Fx from 1 to 12 (and the 
> > RETURN key worked fine
> > and brought a new line at the appropriate console ) no other key worked.
> > 
> > My printer is a Lexmark Z617, simple and even more cheap.
> 
> I know that type. Once the ink runs out you throw it away ;-)
> 
> Have you tested with any other usb device attached, particularly
> anything which implements the suspend method such as a mouse?
> 
>       Regards
>               Oliver
> 
> PS: could you direct your reply to include linux-usb-devel?
> This might be a wider problem.
> 
> 

Attachment: pgpK4GTRcBxnu.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