Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 60ee031a authored by Rafael J. Wysocki's avatar Rafael J. Wysocki
Browse files

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: default avatarBjorn Helgaas <bhelgaas@google.com>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: default avatarBjorn Helgaas <bhelgaas@google.com>
parent 656088aa
Loading
Loading
Loading
Loading
+2 −4
Original line number Original line Diff line number Diff line
@@ -2025,8 +2025,7 @@ static pci_power_t pci_target_state(struct pci_dev *dev, bool wakeup)


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


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