PCI/ASPM: Remove struct aspm_register_info.support
authorSaheed O. Bolarinwa <refactormyself@gmail.com>
Thu, 15 Oct 2020 19:30:31 +0000 (14:30 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 16 Oct 2020 16:20:53 +0000 (11:20 -0500)
commitc6e5f02b5281a3166a9b7b4d66830cc234421ba5
tree5abf97229ac2fcb430aff0b2b2d58032ded6068b
parent190cd42cc1db1d7c9f3f326e03f74d1c7a3a4588
PCI/ASPM: Remove struct aspm_register_info.support

Previously we stored the "ASPM Support" field from the Link Capabilities
register in the struct aspm_register_info.

Read the Link Capabilities directly when needed and remove it from the
struct aspm_register_info.  No functional change intended.

[bhelgaas: remove pci_dev cached copy since LNKCAP isn't truly read-only,
add PCI_EXP_LNKCAP_ASPM_L0S & PCI_EXP_LNKCAP_ASPM_L1, check them directly
instead of adding aspm_support()]
Link: https://lore.kernel.org/r/20201015193039.12585-5-helgaas@kernel.org
Signed-off-by: Saheed O. Bolarinwa <refactormyself@gmail.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/pcie/aspm.c
include/uapi/linux/pci_regs.h