On Sat, 10 Dec 2005, Carl-Daniel Hailfinger wrote:

> I can suspend and resume successfully using your latest patch. Previous
> patch had been reversed prior to the test as you suggested.

Good.

> > However it's probably too late for this to go into 2.6.15 -- more likely 
> > it won't appear until 2.6.16.
> 
> That's unfortunate. With either of your patches, suspend worked again for
> me. May I ask you to try to submit your patch anyway, perhaps it will end
> up in 2.6.15 (and I'd be happy).

I will submit it.  We'll see what happens.

> dmesg excerpt follows:
> 
> usb 1-2: new full speed USB device using uhci_hcd and address 2
> drivers/usb/class/usblp.c: usblp0: USB Bidirectional printer dev 2 if 0 alt 0 
> proto 2 vid 0x04E8 pid 0x3242
> usbcore: registered new driver usblp
> drivers/usb/class/usblp.c: v0.13: USB Printer Device Class driver
> PM: Preparing system for mem sleep
> Stopping tasks: ==========================================|
> [...ACPI stuff...]
> PM: Entering mem sleep
> Back to C!
> PM: Finishing wakeup.
> [...ACPI stuff...]
> Restarting tasks...<6>usb 1-2: USB disconnect, address 2
> drivers/usb/class/usblp.c: usblp0: removed
>   done
> usb 1-2: new full speed USB device using uhci_hcd and address 3
> drivers/usb/class/usblp.c: usblp0: USB Bidirectional printer dev 3 if 0 alt 0 
> proto 2 vid 0x04E8 pid 0x3242
> 
> One question remains: Is the USB disconnect after resume expected and
> if so, is there any functional difference between the two patches?

The USB disconnect is partially expected.  It depends very much on the
details of your particular platform: what the BIOS does and whether power
is provided to the USB controller during suspend.  On systems where the
BIOS is sane and power is maintained, the disconnect won't occur.  On
other systems (and there are plenty of them), all the USB connections will
effectively be destroyed by a suspend.  When the system resumes it will
appear that all the devices have disconnected and reconnected -- just like
you see above.

There are some differences between the two patches, but they are very
minor and shouldn't affect you.  The main difference is that the first
patch changed the system's behavior with respect to _any_ USB driver
without suspend/resume support, whereas the second patch changes only the
usblp driver (by adding suspend/resume support).  The other differences
have to do with the driver's behavior if you try to suspend while
something is actually being printed, and I think those differences will
show up only on a PowerPC system.

Alan Stern



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&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