aboutsummaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorGravatar Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> 2024-03-22 14:39:52 +0200
committerGravatar Bjorn Helgaas <bhelgaas@google.com> 2024-05-02 17:02:19 -0500
commitdc69062a1a73f0fe33a83401e8a3b1d5d54b43af (patch)
treee166c46a03ce8dcf704075ad4827fd147186d50b /kernel
parentPCI/ASPM: Consolidate link state defines (diff)
downloadlinux-dc69062a1a73f0fe33a83401e8a3b1d5d54b43af.tar.gz
linux-dc69062a1a73f0fe33a83401e8a3b1d5d54b43af.tar.bz2
linux-dc69062a1a73f0fe33a83401e8a3b1d5d54b43af.zip
PCI/ASPM: Clean up ASPM disable/enable mask calculation
With only one set of defines remaining, state can be almost used as-is to set ->aspm_disable/default. Only CLKPM and L1 PM substates need special handling. Remove unnecessary if conditions that can use the state variable bits directly. Move ASPM mask calculation into pci_calc_aspm_enable_mask() and pci_calc_aspm_disable_mask() helpers which makes it easier to alter state variable directly. Link: https://lore.kernel.org/r/20240322123952.6384-3-ilpo.jarvinen@linux.intel.com Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions