Skip to content

Commit 43f7f88

Browse files
westeribjorn-helgaas
authored andcommitted
PCI: Don't clear d3cold_allowed for PCIe ports
The PCI core skips bridges and ports when the system is suspended. The PCI core checks return value of pci_has_subordinate() in pci_pm_suspend_noirq() to skip all devices where it is non-zero (which means PCI bridges and PCIe ports). Since PCIe ports are never suspended in the first place, there is no need to set d3cold_allowed for them. Tested-by: Lukas Wunner <[email protected]> Signed-off-by: Mika Westerberg <[email protected]> Signed-off-by: Bjorn Helgaas <[email protected]> Acked-by: Rafael J. Wysocki <[email protected]>
1 parent 9661e78 commit 43f7f88

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

drivers/pci/pcie/portdrv_pci.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -134,11 +134,6 @@ static int pcie_portdrv_probe(struct pci_dev *dev,
134134
return status;
135135

136136
pci_save_state(dev);
137-
/*
138-
* D3cold may not work properly on some PCIe port, so disable
139-
* it by default.
140-
*/
141-
dev->d3cold_allowed = false;
142137
return 0;
143138
}
144139

0 commit comments

Comments
 (0)