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

From: Alan Stern
Date: Thu Mar 29 2007 - 11:56:59 EST


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.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/