CVSROOT: /cvs Module name: src Changes by: m...@cvs.openbsd.org 2013/11/06 03:40:36
Modified files: sys/dev/acpi : acpi.c acpipwrres.c acpireg.h acpivar.h files.acpi sys/arch/amd64/include: pci_machdep.h sys/arch/amd64/pci: pci_machdep.c sys/arch/i386/pci: pci_machdep.c pci_machdep.h Log message: 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@