On Fri, Sep 01, 2006 at 11:09:16PM -0400, Alan Stern wrote:
> On Fri, 1 Sep 2006, Greg KH wrote:
> 
> > On Wed, Aug 30, 2006 at 03:46:35PM -0400, Alan Stern wrote:
> > > Greg:
> > > 
> > > It's finally time to submit the USB autosuspend patches.
> > > 
> > > This cover message is pretty brief, since the major points were described
> > > in an earlier email:
> > > 
> > > http://marc.theaimsgroup.com/?l=linux-usb-devel&m=115316128104011&w=2
> > 
> > Ok, they're in.
> 
> I got about a dozen "This is a note to let you know that I've just added
> the patch" messages in a row!  :-)

Well, this was more for the rest of linux-usb-devel, which should not
have gotten those messages :)

> > Just one question, what about devices that are on the bus, but not
> > attached to any driver?  If that happens, the hub is never suspended,
> > right?
> > 
> > If that's true, should we come up with a "generic" driver (for lack of a
> > better name), that binds to a device if no one else does so that it can
> > kick the usage count properly?  It would be kicked off whenever another
> > driver wanted the device of course.
> 
> I thought of that.  Take a look at driver.c:suspend_device().  If the 
> device isn't bound to a driver, it gets a standard USB port suspend.  
> There's no corresponding code in resume_device(), so the device will 
> remain suspended until some driver is probed for it.
> 
> Similarly, as long as an interface isn't bound to a driver, its usage
> count will remain at 0.  Hence it won't interfere with any autosuspend of
> the device.

Ah, ok, very nice.  I'll have to try this out on my laptop now.  It has
a built in fingerprint reader that isn't used at all, but is connected
to USB all the time.

Is there a kernel message when the busses shutdown and then come back
up?

thanks,

greg k-h

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to