Re: [PATCH 4/4] USB: export autosuspend delay in sysfs

Greg KH <[email protected]>
Newsgroups gmane.linux.usb.devel
Message-ID <[email protected]>
On Fri, Feb 23, 2007 at 08:05:57PM -0500, Alan Stern wrote:
> On Fri, 23 Feb 2007, Greg KH wrote:
> 
> > > Part of the development I did with Oliver was to add a .../power/suspended 
> > > attribute for USB devices.  Writing 1 would immediately suspend the device 
> > > and writing 0 would immediately resume it.  Should I submit that part as a 
> > > separate new patch?
> > 
> > Well, we probably need to do that with the larger pm changes for all
> > subsystems, right?
> 
> The thing is, each subsystem needs to add this in its own way -- because
> each type of bus has a different notion of what power states are
> available.  USB is simple in that respect, with only two possible states;  
> things like PCI are more complicated.

I agree.

> > I have heard rumors that both Intel and mvista are starting to dig up
> > the old patches and want to get this stuff all sorted out and into the
> > main kernel tree.  Hopefully something comes of it...
> 
> My crystal ball is looking particularly cloudy today.  Eventually 
> something will have to be done, but will it be done independently by each 
> subsystem?  Or will there be a centralized PM core API with a 
> subsystem-specific hook?  I have no idea.

I think it's going to have to be done on a per-subsystem basis, but
hopefully all the subsystems will at least go through the same sysfs
file so as to make a semblance of uniformity.

> So it comes down to the same question: Should I submit this USB-only 
> facility for inclusion now, with the understanding that it may need to be 
> changed later?

Yes, I don't have a problem with that.  Make sure you add it to the
proper place in Documetation/ABI saying it's very experimental, and then
you have the freedom to change it over time.

thanks,

greg k-h

-------------------------------------------------------------------------
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
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.