power/level and power/control
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 16 lines · Rafael J. Wysocki
Quoted 6 lines · Alan Stern
Greg & Rafael:
In 2.6.34-rc1 we have the new
/sys/devices/.../power/controlattribute, which does exactly the same thing as USB's existing power/level attribute.Quoted 7 lines
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.
Quoted 1 line · Greg KH
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