PCI/ASPM: Remove struct aspm_register_info.enabled
authorSaheed O. Bolarinwa <refactormyself@gmail.com>
Thu, 15 Oct 2020 19:30:32 +0000 (14:30 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 16 Oct 2020 16:20:59 +0000 (11:20 -0500)
commit67bcc9ad6810c43195959f2fd7a202959860e5c8
tree67afcc264a007e1fdfb47d8463936b22603efd2d
parentc6e5f02b5281a3166a9b7b4d66830cc234421ba5
PCI/ASPM: Remove struct aspm_register_info.enabled

Previously we stored the "ASPM Control" bits from the Link Control register
in the struct aspm_register_info.

Read PCI_EXP_LNKCTL directly when needed.  This means we can use the
PCI_EXP_LNKCTL_ASPM_* bits directly instead of the similar but different
PCIE_LINK_STATE_* bits.  No functional change intended.

[bhelgaas: drop get_aspm_enable() and read LNKCTL once directly]
Link: https://lore.kernel.org/r/20201015193039.12585-6-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