Re: Re: Possible problem with device_move()

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

 



On Thu, 2 Aug 2007, Rafael J. Wysocki wrote:

> > > Well, my idea is not to change the order, but to create the list from scratch
> > > when we need it and not in advance, because creating the list in advance
> > > causes problems to appear.
> > 
> > Doing it that way will almost certainly result in a different order 
> > from the one we have now.
> 
> Yes, but wouldn't that order be more accurate?

I'm not so sure.  There might be hidden dependencies, things we aren't
aware of because they are automatically satisfied by
order-of-discovery.  With an arbitrary parent-first traversal of the
device tree those dependencies could be violated.

And then there are the weird possibilities created by device_move().  
Isn't it possible that if an older child is moved under a younger 
parent, we actually might _want_ to suspend the parent first?  Only the 
driver doing the move would know for sure.

> > And it won't help the EHCI issue, because there the question is which of
> > several siblings should come last. 
> 
> Why not?  If the device can indicate something like "place me after that one"
> to the code creating the list, we can handle that too. 

Yes, but currently we don't have any way of indicating that.  And if we 
did, it work work just as well with the current dpm_active list, right?

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