Re: power/level and power/control

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

 



On Thu, 11 Mar 2010, Rafael J. Wysocki wrote:

> On Thursday 11 March 2010, Alan Stern wrote:
> > Greg & Rafael:
> > 
> > In 2.6.34-rc1 we have the new /sys/devices/.../power/control attribute, 
> > which does exactly the same thing as USB's existing power/level 
> > attribute.
> > 
> > There's no reason to keep both.  I'd remove power/level entirely, 
> > except that it has been in existence for a while and people may be 
> > using it.
> > 
> > The best solution may be to replace "level" with a symbolic link to 
> > "control", and possibly also to deprecate it.  Does that seem like the 
> > right thing to do?
> 
> Sounds reasonable to me.

On Thu, 11 Mar 2010, Greg KH wrote:

> Sounds good to me.

Alas, it turns out that sysfs doesn't provide any way to create 
symlinks to attribute files (and especially not to attribute files in 
group directories).

I could add such a thing, but maybe it will be better to keep the
existing attribute code for a year or so and add a WARN_ONCE to let
people know it's going to be removed.

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