public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Put unused PCI devices in D3
@ 2008-09-29 20:11 Jeffrey W. Baker
  2008-09-30  0:09 ` Matthew Garrett
  2008-10-03 19:37 ` Pavel Machek
  0 siblings, 2 replies; 6+ messages in thread
From: Jeffrey W. Baker @ 2008-09-29 20:11 UTC (permalink / raw)
  To: linux-kernel

My laptop computer has half a dozen unused PCI devices that could be put
in the D3 power state, but they loiter in D0.  The audio codec, the
ethernet adapter, the unused PCI Express port, all the USB controllers,
the IEEE1394 controller, the SD/MMC card controller, and the cardbus
bridge all support D3(hot) power state.

Currently it looks to me from browsing the code that D3 is only used in
Linux when the whole machine is headed for S3, and the drivers are asked
to suspend.  I think the drivers should be able to enter D3 in other
circumstances:

* During pci_unregister_driver ... i.e. on module unload
* When a network interface is downed
* If the device is a bridge or hub with no downstream device
* Whenever userspace requests D3 via sysfs

So, what fundamental problem prevents me from, for example, calling
pci_set_power_state() from ohci1394's __exit?

-jwb


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2008-10-03 19:43 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-29 20:11 Put unused PCI devices in D3 Jeffrey W. Baker
2008-09-30  0:09 ` Matthew Garrett
2008-09-30  0:55   ` Jeffrey W. Baker
2008-09-30  1:06     ` Matthew Garrett
2008-10-03 19:40     ` Pavel Machek
2008-10-03 19:37 ` Pavel Machek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox