mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Rafael J. Wysocki" <rjw@sisk.pl>
To: Bill Nottingham <notting@redhat.com>
Cc: linux-kernel@vger.kernel.org,
	Alan Stern <stern@rowland.harvard.edu>,
	Pavel Machek <pavel@ucw.cz>
Subject: Re: Problems with suspend and USB storage
Date: Thu, 15 May 2008 21:40:42 +0200	[thread overview]
Message-ID: <200805152140.43292.rjw@sisk.pl> (raw)
In-Reply-To: <20080515163315.GA17779@nostromo.devel.redhat.com>

On Thursday, 15 of May 2008, Bill Nottingham wrote:
> 
> 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?

Well, the problem is that USB storage devices are disconnected during suspend
and hibernation and connected once again during resume.  Then, however, we
are not able to tell whether the device in the slot is the same that was in
there before the system was put into the sleep state.

I'm not sure if there's any workaround available in the current mainline.

Thanks,
Rafael

  parent reply	other threads:[~2008-05-15 19:40 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-15 16:33 Bill Nottingham
2008-05-15 17:54 ` Tino Keitel
2008-05-15 18:03   ` Bill Nottingham
2008-05-15 19:40 ` Rafael J. Wysocki [this message]
2008-05-15 19:42   ` Bill Nottingham
2008-05-15 20:04     ` Rafael J. Wysocki
2008-05-15 19:55   ` Alan Stern
2008-05-16 12:04   ` Pavel Machek
2008-05-16  7:29 ` Greg KH
2008-05-22 20:59   ` Bill Nottingham

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200805152140.43292.rjw@sisk.pl \
    --to=rjw@sisk.pl \
    --cc=linux-kernel@vger.kernel.org \
    --cc=notting@redhat.com \
    --cc=pavel@ucw.cz \
    --cc=stern@rowland.harvard.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®