[Linux-kernel-mentees] [RFC PATCH v5 00/23] Remove struct pcie_link_state and aspm_register_info
Saheed O. Bolarinwa
refactormyself at gmail.com
Sat Aug 22 20:03:35 UTC 2020
This series removes struct pcie_link_state and struct aspm_register_info
and reoganise the code in a require.
MERGE:
Please don't merge yet
ToDo
- Remove redundant functions like get_link_state()
- Are locks still needed?
- A few cleanups
- Look for any other redundant code
Saheed O. Bolarinwa (23):
PCI: Migrate ASPM info from struct pcie_link_state to struct pci_dev
PCI: Add l1ss_cap and l1ss_cap_ptr to struct pci_dev
PCI: Rework calc_l*_latency() to take a pci_dev *
PCI: Compute aspm_register_info.support directly
PCI: Read value of aspm_register_info.l1ss_ctl1 directly
PCI: Replace aspm_register_info.l1ss_cap* with their pci_dev version
PCI: Compute aspm_register_info.enable directly
PCI: Remove unused aspm_calc_l1ss_info() arguments
PCI: Remove pcie_get_aspm_reg() and struct aspm_register_info
PCI: Relocate call to aspm_calc_l1ss_info
PCI: Rework and Rename aspm_calc_l1ss_info()
PCI: Add ASPM and CLOCK PM states to struct pci_dev
PCI: Initialise and Update values of pci_dev's PCIe link info
PCI: Change Return and Argument values from pcie_link_state to pci_dev
PCI: Replace pcie_link_state based device list with a pci_dev one
PCI: Remove Exit latencies from struct pcie_link_state
PCI: Remove .clkpm_* from struct pcie_link_state
PCI: Remove .aspm_* from struct pcie_link_state
PCI: Remove .parent from struct pcie_link_state
PCI: Remove .root from struct pcie_link_state
PCI: Remove .downstream from struct pcie_link_state
PCI: Remove .pdev from struct pcie_link_state
PCI: Remove struct pcie_link_state
drivers/pci/pcie/aspm.c | 570 ++++++++++++++++------------------------
drivers/pci/probe.c | 7 +
include/linux/pci.h | 37 ++-
3 files changed, 267 insertions(+), 347 deletions(-)
base-commit: 5f49ff2540e2c2799cde0cfaf6af9e1f824cd393
--
2.18.4
More information about the Linux-kernel-mentees
mailing list