PCI: Enable ASPM state clearing regardless of policy
[~shefty/rdma-dev.git] / drivers / pci / pcie / aspm.c
index eee09f756ec95a18832199801924aa2775da2195..3eb667b247871307b3fa40825217610125c34d29 100644 (file)
@@ -608,7 +608,7 @@ void pcie_aspm_init_link_state(struct pci_dev *pdev)
         * the BIOS's expectation, we'll do so once pci_enable_device() is
         * called.
         */
-       if (aspm_policy != POLICY_POWERSAVE) {
+       if (aspm_policy != POLICY_POWERSAVE || aspm_clear_state) {
                pcie_config_aspm_path(link);
                pcie_set_clkpm(link, policy_to_clkpm_state(link));
        }