Problems with suspend and USB storage

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Bill Nottingham
Date: Thursday, May 15, 2008 - 9:33 am

I've been testing suspend/hibernate with various USB devices under
2.6.25.2. Test box is a Thinkpad T60 (uhci, ehci).
The results are somewhat dismal.

Using USB as a hibernate device:
- A directly connected USB stick works OK as a hibernate device
- A directly connected USB hard drive works OK as a hibernate device
- A USB stick connected via an ExpressCard reader does not - it appears
  to just not be there when the hibernate code attemps to write
  the data.

On resume (from either hibernate or suspend from RAM):
- Any 'in use' USB storage, whether it be as swap (a hibernate device),
  or a mounted filesystem, immediately generates errors on resume. It
  appears the filesystem and/or swap tasks are woken up before the
  actual USB device - it enumerates the disks after the errors have
  already been thrown.
- As a consequence, the USB devices shift their device names
- Using USB_PERSIST has no effect on this problem
- This appears to happen for all USB connection types (hard drive,
  stick, via ExpressCard reader.)

Is there any way to get sane behavior out of suspend/resume with
USB storage?

Bill
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Problems with suspend and USB storage, Bill Nottingham, (Thu May 15, 9:33 am)
Re: Problems with suspend and USB storage, Tino Keitel, (Thu May 15, 10:54 am)
Re: Problems with suspend and USB storage, Bill Nottingham, (Thu May 15, 11:03 am)
Re: Problems with suspend and USB storage, Rafael J. Wysocki, (Thu May 15, 12:40 pm)
Re: Problems with suspend and USB storage, Bill Nottingham, (Thu May 15, 12:42 pm)
Re: Problems with suspend and USB storage, Alan Stern, (Thu May 15, 12:55 pm)
Re: Problems with suspend and USB storage, Rafael J. Wysocki, (Thu May 15, 1:04 pm)
Re: Problems with suspend and USB storage, Greg KH, (Fri May 16, 12:29 am)
Re: Problems with suspend and USB storage, Pavel Machek, (Fri May 16, 5:04 am)
Re: Problems with suspend and USB storage, Bill Nottingham, (Thu May 22, 1:59 pm)