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



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/



Relevant Pages

  • Re: usbd config file parse behaviour
    ... >> No. That's not the real problem here. ... > Not having ugen in the kernel is not an option. ... > They are possibly used and probing for USB devices requires exclusive ... > Such a feature is required for some types of firmware downloaders too. ...
    (freebsd-hackers)
  • Re: [Linux-usb-users] PROBLEM: Kernel 2.6.x freeze
    ... The failure is only a natural consequence of: ... The real problem is that the code starting from "0xcd0d18140" has been ... what sort of USB devices do you have attached to the computer? ...
    (Linux-Kernel)
  • Re: usbd config file parse behaviour
    ... > No. That's not the real problem here. ... They are possibly used and probing for USB devices requires exclusive ... Such a feature is required for some types of firmware downloaders too. ... Intelligent USB chips requireing firmware download could disconneect ...
    (freebsd-hackers)
  • AutoPlay for USB devices
    ... Is there any way I can turn autoplay off all together for USB devices? ... This isn't a real problem, its just getting aggrevating. ...
    (microsoft.public.windowsxp.help_and_support)