]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: PM: Make pci_choose_state() call pci_target_state()
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 29 Sep 2021 18:11:18 +0000 (20:11 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 5 Oct 2021 13:38:05 +0000 (15:38 +0200)
commit589c826fe56d20cb8d8f7b664ddd37b43f7d585c
treead2baef3e00f4d0ccf24aa414e6637e929eb2b72
parentc8ba813d0f2974bfdf44a3ad23437de3dff9f30e
PCI: PM: Make pci_choose_state() call pci_target_state()

The pci_choose_state() and pci_target_state() implementations are
somewhat divergent without a good reason, because they are used
for similar purposes.

Change the pci_choose_state() implementation to use pci_target_state()
internally except for transitions to the working state of the system
in which case it is expected to return D0.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Tested-by: Ferry Toth <fntoth@gmail.com>
drivers/pci/pci-acpi.c
drivers/pci/pci.c