On going through the aspm driver, I found some potential bugs and opportunities for code cleanup in the way the aspm_disable and aspm_default states are being handled by the driver. Changes from v1 to v2: - Split the patches into smaller patches - Add the patch to rename L1.2 specific functions Ajay Agarwal (5): PCI/ASPM: Disable ASPM_STATE_L1 only when class driver disables L1 ASPM PCI/ASPM: Set ASPM_STATE_L1 only when driver enables L1.0 PCI/ASPM: Set ASPM_STATE_L1 when driver enables L1ss PCI/ASPM: Rename L1.2 specific functions PCI/ASPM: Remove unnecessary ASPM_STATE_L1SS check drivers/pci/pcie/aspm.c | 34 +++++++++++++++------------------- 1 file changed, 15 insertions(+), 19 deletions(-) -- 2.40.1.495.gc816e09b53d-goog