On 10/16/06, Alan Stern <[EMAIL PROTECTED]> wrote:
> On Mon, 16 Oct 2006, Dmitry Torokhov wrote:
>
> > I don't agree. I think that power management should be left to drivers
> > working with hardware and not be placed into input core. There will be
> > different rules and different decisions, based on the type of device
> > (USB, PS/2, serial, etc, etc). Input layer should not be concerned
> > with these.
>
> It works the other way, too.  There are all sorts of input devices
> (keyboard, mouse, joystick, ...) each needing different rules about when
> it has been inactive long enough to suspend.  The input layer understands
> them, whereas the USB, PS/2, serial, etc. layers shouldn't have to.
>

Actually input layer does not know whether a device is a joystick or
keyboard or mouse. It just knows that a device has certain
capabilities but leaves classification either to interfaces (joydev,
mousedev) or to userspace.

> One approach would be to add a function callback pointer to the input
> device structure for autosuspend requests.  The transport layer would then
> be responsible for handling these callbacks and carrying out the suspend.

But input does not care about power management. It's like saying that
we need to move power management for disks into partition handling or
filesystem code or (taking to extreme) userspace. Input will tells
device whether it is used or not (open/closed) and expects device to
be available if it is open. It is lower level driver's task to
implement autosuspend if needed but it has to be transparent for the
upper layer.

-- 
Dmitry

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