[RFC][PATCH 0/3] PCI PM: Rework pci_set_power_state

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I've recently discovered that pci_set_power_state() calls the platform
callback intended for changing the state of the device after it has done
that using the native PCI mechanism.  In my opinion this is not correct,
because, for example, if the device is being put into D0 from a low power
state, it may require some platform-controlled power resources to be turned
on before that (in theory).

The following series of patches changes this function so that the platform
callback is performed first and then the native mechanism is used.
Additionally, however, it checks if the devices is power manageable by the
platform and only in that case the platform callback is invoked.  For this
purpose, I needed to add an ACPI function allowing PCI to check the power
manageability of given device.

Comments welcome.

Thanks,
Rafael

_______________________________________________
linux-pm mailing list
linux-pm@xxxxxxxxxxxxxxxxxxxxxxxxxx
https://lists.linux-foundation.org/mailman/listinfo/linux-pm

[Index of Archives]     [Linux ACPI]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [CPU Freq]     [Kernel Newbies]     [Fedora Kernel]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux