diff options
author | 2022-05-05 20:00:33 +0200 | |
---|---|---|
committer | 2022-05-05 14:19:48 -0500 | |
commit | 10aa5377fc8ae0a259692dd9b20593a79567e0ef (patch) | |
tree | f0bb73bf32219c5630d5bbf14a4d436ec5142969 /lib/kasprintf.c | |
parent | PCI/PM: Rearrange pci_update_current_state() (diff) | |
download | linux-dev-10aa5377fc8ae0a259692dd9b20593a79567e0ef.tar.xz linux-dev-10aa5377fc8ae0a259692dd9b20593a79567e0ef.zip |
PCI/PM: Split pci_raw_set_power_state()
The transitions from low-power states to D0 and the other way around
are unnecessarily tangled in pci_raw_set_power_state() which makes it
rather hard to follow.
Moreover, the only caller of pci_raw_set_power_state() passing PCI_D0
as its state argument is pci_power_up(), so the code carrying out
transitions into D0 can be put directly into that function.
Accordingly, move the code handling transitions from low-power states
into D0 directly into pci_power_up() and rename the remaining part
of pci_raw_set_power_state() to pci_set_low_power_state(), because
it only handles transitions into low-power state now.
While at it, fix up some white space, update some comments and modify
messages printed by pci_power_up() and pci_set_low_power_state() to
be less confusing (which is the only expected functional impact of
this change).
Link: https://lore.kernel.org/r/13038676.uLZWGnKmhe@kreacher
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'lib/kasprintf.c')
0 files changed, 0 insertions, 0 deletions