Skip to content

Commit e91c25c

Browse files
committed
Merge branch 'pci/pm'
- Allow PCI bridges to go to D3Hot on all non-x86 systems (Manivannan Sadhasivam) * pci/pm: PCI: Allow PCI bridges to go to D3Hot on all non-x86
2 parents 655ea93 + a5fb3ff commit e91c25c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

drivers/pci/pci.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3031,7 +3031,7 @@ static const struct dmi_system_id bridge_d3_blacklist[] = {
30313031
* @bridge: Bridge to check
30323032
*
30333033
* This function checks if it is possible to move the bridge to D3.
3034-
* Currently we only allow D3 for recent enough PCIe ports and Thunderbolt.
3034+
* Currently we only allow D3 for some PCIe ports and for Thunderbolt.
30353035
*/
30363036
bool pci_bridge_d3_possible(struct pci_dev *bridge)
30373037
{
@@ -3075,10 +3075,10 @@ bool pci_bridge_d3_possible(struct pci_dev *bridge)
30753075
return false;
30763076

30773077
/*
3078-
* It should be safe to put PCIe ports from 2015 or newer
3079-
* to D3.
3078+
* Out of caution, we only allow PCIe ports from 2015 or newer
3079+
* into D3 on x86.
30803080
*/
3081-
if (dmi_get_bios_year() >= 2015)
3081+
if (!IS_ENABLED(CONFIG_X86) || dmi_get_bios_year() >= 2015)
30823082
return true;
30833083
break;
30843084
}

0 commit comments

Comments
 (0)