aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/pci.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/pci/pci.c')
-rw-r--r--drivers/pci/pci.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c
index dbfe7c4f3776..e90cf5c32e14 100644
--- a/drivers/pci/pci.c
+++ b/drivers/pci/pci.c
@@ -2025,8 +2025,7 @@ static pci_power_t pci_target_state(struct pci_dev *dev, bool wakeup)
2025 2025
2026 if (platform_pci_power_manageable(dev)) { 2026 if (platform_pci_power_manageable(dev)) {
2027 /* 2027 /*
2028 * Call the platform to choose the target state of the device 2028 * Call the platform to find the target state for the device.
2029 * and enable wake-up from this state if supported.
2030 */ 2029 */
2031 pci_power_t state = platform_pci_choose_state(dev); 2030 pci_power_t state = platform_pci_choose_state(dev);
2032 2031
@@ -2059,8 +2058,7 @@ static pci_power_t pci_target_state(struct pci_dev *dev, bool wakeup)
2059 if (wakeup) { 2058 if (wakeup) {
2060 /* 2059 /*
2061 * Find the deepest state from which the device can generate 2060 * Find the deepest state from which the device can generate
2062 * wake-up events, make it the target state and enable device 2061 * PME#.
2063 * to generate PME#.
2064 */ 2062 */
2065 if (dev->pme_support) { 2063 if (dev->pme_support) {
2066 while (target_state 2064 while (target_state