Re: USB: on suspend to ram/disk all usb devices are replugged

Alan Stern
2007-03-29T15:56:44Z

On Thu, 29 Mar 2007, Mark Lord wrote:

> Maxim Levitsky wrote:
> > Hi,
> > I noticed that after suspend/resume cycle all my usb devices are unplugged/replugged by uhci driver.
> > While it is not that big problem to me, that can be a real problem if a device is a flash card with mounted
> > file-system, because disappeared device will cause file-system corruption.
>
> Mmm.. this sounds really bad -- I wonder what happens if the rootfs is on USB ?

The system crashes as soon as it resumes. As you might expect.

> With older kernels, things just "worked" this way. Has it now been broken ??

No; it has never worked. Your memory of how older kernels behaved is
wrong.

Alan Stern

P.S.: Help is on the way. I will soon submit a patch to help improve the
situation.