mbox series

[RFC,v1,0/6] Remove struct pcie_link_state.aspm_*

Message ID 20211106175353.26248-1-refactormyself@gmail.com (mailing list archive)
Headers show
Series Remove struct pcie_link_state.aspm_* | expand

Message

Saheed O. Bolarinwa Nov. 6, 2021, 5:53 p.m. UTC
aspm_{enable, support} in struct pcie_link_state do not need to be
stored. This series removes them and creates functions to calculate
them.

MERGE NOTICE:
These series are based on
ยป       'commit e4e737bb5c17 ("Linux 5.15-rc2")'


Saheed O. Bolarinwa (6):
  PCI/ASPM: Extract out L1SS_CAP calculations
  PCI/ASPM: Extract the calculation of link->aspm_support
  PCI/ASPM: Extract the calculation of link->aspm_enabled
  PCI/ASPM: Don't cache struct pcie_link_state->aspm_support
  PCI/ASPM: Move pcie_aspm_sanity_check() upwards
  PCI/ASPM: Don't cache struct pcie_link_state->aspm_enabled

 drivers/pci/pcie/aspm.c | 291 +++++++++++++++++++++++-----------------
 1 file changed, 170 insertions(+), 121 deletions(-)