diff options
author | Bjorn Helgaas <bhelgaas@google.com> | 2023-10-28 20:30:59 +0200 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2023-10-28 20:30:59 +0200 |
commit | 2afbbc65be459f628719f21cb8ca6ce4c852b11c (patch) | |
tree | f008ef41cfbf5afb8052bff8cfa34b6d87461589 /drivers/pci/pci-acpi.c | |
parent | Merge branch 'pci/p2pdma' (diff) | |
parent | x86/PCI: Avoid PME from D3hot/D3cold for AMD Rembrandt and Phoenix USB4 (diff) | |
download | linux-2afbbc65be459f628719f21cb8ca6ce4c852b11c.tar.xz linux-2afbbc65be459f628719f21cb8ca6ce4c852b11c.zip |
Merge branch 'pci/pm'
- Protect driver's D3cold preference from being overwritten by user space
via sysfs (Lukas Wunner)
- Avoid PME from D3hot/D3cold for AMD Rembrandt and Phoenix USB4 to fix
wakeup by USB4-attached devices (Mario Limonciello)
* pci/pm:
x86/PCI: Avoid PME from D3hot/D3cold for AMD Rembrandt and Phoenix USB4
PCI/sysfs: Protect driver's D3cold preference from user space
Diffstat (limited to 'drivers/pci/pci-acpi.c')
-rw-r--r-- | drivers/pci/pci-acpi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/pci-acpi.c b/drivers/pci/pci-acpi.c index cf108259aef6..004575091596 100644 --- a/drivers/pci/pci-acpi.c +++ b/drivers/pci/pci-acpi.c @@ -911,7 +911,7 @@ pci_power_t acpi_pci_choose_state(struct pci_dev *pdev) { int acpi_state, d_max; - if (pdev->no_d3cold) + if (pdev->no_d3cold || !pdev->d3cold_allowed) d_max = ACPI_STATE_D3_HOT; else d_max = ACPI_STATE_D3_COLD; |