login
Header Space

 
 

Re: PNP power management API for drivers

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <tech-kern@...>
Date: Friday, October 5, 2007 - 5:35 pm

On Fri, Oct 05, 2007 at 02:24:01PM -0700, Matt Thomas wrote:

Yes.


At the moment it is up to the bus handler to use whatever it wants.
The first implementation would use D3hot for all PCI devices that
support PCI-PM. Once the device property support is merged, it would be
adjustable on a per-device base. This will likely go hand-in-hand with
an extension of the bus API. But I want to defer that discussion to the
right point.

I don't think register has to include the supported states as they are
either trivial (just on or off) or need some bus support. I don't think
complicating the API is justified at the current time.


The device itself should do nothing of that sort. That's what the device
classes and handlers are for. I have an experimental patch for the
jmcneill-pm to power down a network interface if it is not IFF_UP.

Jared wants to do similiar things for the audio devices. In general, the
decision about when to power down or not should be left for higher
layers to decide. A device is certainly not the right place.


Hot plug support is a separate problem domain and has to be addressed at
the bus level.

Joerg
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
PNP power management API for drivers, Joerg Sonnenberger, (Fri Oct 5, 4:08 pm)
Re: PNP power management API for drivers , Matthias Drochner, (Fri Oct 5, 5:07 pm)
Re: PNP power management API for drivers, Joerg Sonnenberger, (Fri Oct 5, 5:23 pm)
Re: PNP power management API for drivers , Matt Thomas, (Fri Oct 5, 5:24 pm)
Re: PNP power management API for drivers, Joerg Sonnenberger, (Fri Oct 5, 5:35 pm)
Re: PNP power management API for drivers, Matt Thomas, (Fri Oct 5, 9:20 pm)
Re: PNP power management API for drivers, Joerg Sonnenberger, (Fri Oct 5, 9:39 pm)
Re: PNP power management API for drivers, Matt Thomas, (Fri Oct 5, 9:56 pm)
Re: PNP power management API for drivers, Jason Thorpe, (Tue Oct 16, 12:32 pm)
Re: PNP power management API for drivers, Joerg Sonnenberger, (Tue Oct 16, 3:01 pm)
Re: PNP power management API for drivers, Jared D. McNeill, (Tue Oct 16, 2:03 pm)
Re: PNP power management API for drivers, Matt Thomas, (Tue Oct 16, 4:20 pm)
Re: PNP power management API for drivers, Jason Thorpe, (Tue Oct 16, 2:19 pm)
Re: PNP power management API for drivers, Jared D. McNeill, (Tue Oct 16, 3:23 pm)
Re: PNP power management API for drivers, Joerg Sonnenberger, (Fri Oct 5, 10:20 pm)
Re: PNP power management API for drivers, Jared D. McNeill, (Fri Oct 5, 6:11 pm)
speck-geostationary