PCI PM: Add function for checking PME status of devices
authorRafael J. Wysocki <rjw@sisk.pl>
Wed, 17 Feb 2010 22:36:58 +0000 (23:36 +0100)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Tue, 23 Feb 2010 00:20:24 +0000 (16:20 -0800)
commit58ff463396ad00828e922d50998787e97fd32512
tree4964b07518a02736a23839d89bb7ac4a065dede8
parent6d3be84aab461815978d970aa45f5bc9e52dd772
PCI PM: Add function for checking PME status of devices

Add function pci_check_pme_status() that will check the PME status
bit of given device and clear it along with the PME enable bit.  It
will be necessary for PCI run-time power management.

Based on a patch from Shaohua Li <shaohua.li@intel.com>

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
drivers/pci/pci.c
drivers/pci/pci.h