diff options
author | David E. Box <[email protected]> | 2024-02-23 14:58:49 -0600 |
---|---|---|
committer | Bjorn Helgaas <[email protected]> | 2024-03-07 14:29:21 -0600 |
commit | 1e11b5494c3dbb1e5fce7e95021c1698799c7288 (patch) | |
tree | 66d8930a3bd724679d37005243c6dbf578682866 /scripts/clang-tools/run-clang-tools.py | |
parent | f3994bba8200b49e3eacbe5914cd13f228e0db37 (diff) |
PCI/ASPM: Move pci_save_ltr_state() to aspm.c
Even when CONFIG_PCIEASPM is not set, we save and restore the LTR
Capability so that if ASPM L1.2 and LTR were configured by the platform,
ASPM L1.2 will still work after suspend/resume, when that platform
configuration may be lost. See dbbfadf23190 ("PCI/ASPM: Save LTR Capability
for suspend/resume").
Since ASPM L1.2 depends on the LTR Capability, move the save/restore code
to the part of aspm.c that is always compiled regardless of
CONFIG_PCIEASPM. No functional change intended.
Suggested-by: Bjorn Helgaas <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
[bhelgaas: commit log, reorder to make this a pure move]
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: David E. Box <[email protected]>
Signed-off-by: Bjorn Helgaas <[email protected]>
Diffstat (limited to 'scripts/clang-tools/run-clang-tools.py')
0 files changed, 0 insertions, 0 deletions