On Tuesday 23 January 2007 4:32 pm, Greg KH wrote: > On Tue, Jan 23, 2007 at 04:22:43PM -0800, David Brownell wrote: > > > > > static struct attribute *dev_attrs[] = { > > > > > + /* power management attributes */ > > > > > + &dev_attr_autosuspend.attr, > > > > > > > > Belongs in /sys/devices/.../power/... then, right? > > > > > > No, I thought we want to drop that power/ directory. > > > > Dropping that directory hasn't AFAIK ever been discussed. > > If it were to be dropped, where would the per-device wakeup > > flags live? > > I don't know, it just really annoys me to see that power directory there > with no use for it for a lot of devices :)
I have that same feeling about sysfs itself, on occasion. The driver model functionality can be had without sysfs exports ... > > > I have no > > > objection to it going into the USB device directory, as that is the > > > proper place for it. > > > > It'd be OK for a USB-specific mechanism, but there was at > > one point some discussion about this mechanism being more > > generally appropriate. > > Hm, I missed that. This seems to be a very usb-specific thing at the > moment. And an annoying one too for some of my devices...powering off > the bus for USB devices with no drivers might start causing devices that > use usbfs to do wierd things. Still trying to work it all out though... It's not powered "off"; it's just in a low power state. Agreed about the wierdness being troublesome. The Linux-USB developers need a few more CATC/LeCroy tools to help sort out such trouble. :) - Dave ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ linux-usb-devel@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel