Greg and Andrew:

This series of patches completely reworks the way ohci-hcd carries out 
root-hub autosuspends.  The existing code is not compatible with the new 
core USB autosuspend mechanism.

Patch 1 is a simple one-line change to usbcore with no harmful effects.  
It can go directly into both Greg's and Andrew's trees.

Patch 2 removes the existing autosuspend code in ohci-hcd.  It is
essentially the same as a patch Rafael tried out; he confirmed that it got
ohci-hcd to work on his machine both with CONFIG_USB_SUSPEND unset and
with it set.  This patch also can go directly into both trees.  If anybody
has been having trouble using their OHCI controllers with the recent -mm
kernels, this should fix it.  The downside is that now the controllers
won't automatically get turned off when no devices are attached.  
Hopefully this state of affairs will be relatively short-lived.

Patch 3 adds new "auto-stop" code to ohci-hcd.  This will stop the
controller only when no devices are attached, unlike the existing code
which will also suspend the controller when all the attached devices are
themselves suspended.  That's okay, because "auto-stop" is meant to be
used when CONFIG_USB_SUSPEND isn't set -- which means attached devices
would _never_ be suspended.

Patch 3 is much more experimental than the first two, and probably also 
more controversial (I expect David will have a lot to say about it, even 
if no one else does).  In fact, I won't even CC: Andrew on this one; let's 
just keep it in the USB tree at first.  More details will appear in the 
patch message.

Alan Stern

P.S.: Raphael, these three patches will apply to 2.6.18-mm1.  In addition
to these you might want to add this patch, which hasn't yet been accepted:

http://marc.theaimsgroup.com/?l=linux-usb-devel&m=115867525727045&w=2


-------------------------------------------------------------------------
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

Reply via email to