Skip to content

Commit 60ee031

Browse files
committed
PCI / PM: Clean up outdated comments in pci_target_state()
Two comments in pci_target_state() are outdated, as the function doesn't set the target power state for the device any more, only finds one for it, so fix them accordingly. Reported-by: Bjorn Helgaas <bhelgaas@google.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Acked-by: Bjorn Helgaas <bhelgaas@google.com>
1 parent 656088a commit 60ee031

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

drivers/pci/pci.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2025,8 +2025,7 @@ static pci_power_t pci_target_state(struct pci_dev *dev, bool wakeup)
20252025

20262026
if (platform_pci_power_manageable(dev)) {
20272027
/*
2028-
* Call the platform to choose the target state of the device
2029-
* and enable wake-up from this state if supported.
2028+
* Call the platform to find the target state for the device.
20302029
*/
20312030
pci_power_t state = platform_pci_choose_state(dev);
20322031

@@ -2059,8 +2058,7 @@ static pci_power_t pci_target_state(struct pci_dev *dev, bool wakeup)
20592058
if (wakeup) {
20602059
/*
20612060
* Find the deepest state from which the device can generate
2062-
* wake-up events, make it the target state and enable device
2063-
* to generate PME#.
2061+
* PME#.
20642062
*/
20652063
if (dev->pme_support) {
20662064
while (target_state

0 commit comments

Comments
 (0)