diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2013-11-06 10:40:37 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2013-11-06 10:40:37 +0000 |
commit | 1b2cca43962b305f5786dcdfc424ca22ce44cce6 (patch) | |
tree | 47f46e685c87dffdf5bee15e7cb55f4aee71f6a9 /sys/dev/pci | |
parent | 65d3cf7e6b97615ce69a5bc0815fcdd5f188376e (diff) |
Add support for Power Resources for Dx states and the necessary hook
for PCI devices. This hook should be called twice, before and after
changing the power state of a PCI device.
Before setting the device to the new state, the ACPI layer will notify
every power resources linked to the device for that state and make sure
they are turned "_ON". After changing the state of the device, it will
decrement the reference of every power resources linked to that device
for the old state and turn them "_OFF" if they are no longer referenced.
This fixes the no-USB after resume problem seen on various ThinkPad,
problem initialy diagnosed with Alexander Polakov.
ok kettenis@, deraadt@
Diffstat (limited to 'sys/dev/pci')
0 files changed, 0 insertions, 0 deletions