Re: [RFC Add no_suspend attribute V2] Let the driver know if it's in use

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 1 May 2009, Michael Trimarchi wrote:

> > Nobody knows all the device dependencies.  That's why we're afraid that 
> > if you change the list, something will break.
> >
> >   
> But this happen for broken device? The list is a sufficient condition 
> for correct
> suspend phase but is not necesarry, because all the dependence are not 
> registerd.
> But just to understand: What are the typical situation, because I 
> suppose that
> we are not talking about broken device.

No, we're talking about normal, working devices.

I don't know that any situation is "typical", but here is one example.
In USB, a high-speed EHCI controller is accompanied by one or more
full/low-speed companion controllers (UHCI or OHCI).  They are
implemented as different PCI functions on the same PCI card, so they
are siblings in the device tree -- neither is a parent or a child of
the other.  During resume from hibernation, it is important that the
companion controllers be resumed _before_ the EHCI controller;
otherwise EHCI port handoffs won't work (you can't hand off a port to a
companion controller that hasn't been resumed yet).  It does work now,
because the companion controllers are registered before the EHCI
controller and so they come earlier in the dpm_list.

Does that give you an idea of the potential problems?  There may be 
other similar issues that nobody has ever run across and nobody knows 
about, simply because we have never changed the order of devices on the 
dpm_list.

Alan Stern

_______________________________________________
linux-pm mailing list
linux-pm@xxxxxxxxxxxxxxxxxxxxxxxxxx
https://lists.linux-foundation.org/mailman/listinfo/linux-pm

[Index of Archives]     [Linux ACPI]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [CPU Freq]     [Kernel Newbies]     [Fedora Kernel]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux