Skip to content

Commit 88b9608

Browse files
committed
Merge branch 'pm-pci'
Merge a PCI power management regression fix. * pm-pci: PCI / ACPI / PM: Resume bridges w/o drivers on suspend-to-RAM
2 parents 895b661 + 26112dd commit 88b9608

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

drivers/pci/pci-acpi.c

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -629,6 +629,18 @@ static bool acpi_pci_need_resume(struct pci_dev *dev)
629629
{
630630
struct acpi_device *adev = ACPI_COMPANION(&dev->dev);
631631

632+
/*
633+
* In some cases (eg. Samsung 305V4A) leaving a bridge in suspend over
634+
* system-wide suspend/resume confuses the platform firmware, so avoid
635+
* doing that, unless the bridge has a driver that should take care of
636+
* the PM handling. According to Section 16.1.6 of ACPI 6.2, endpoint
637+
* devices are expected to be in D3 before invoking the S3 entry path
638+
* from the firmware, so they should not be affected by this issue.
639+
*/
640+
if (pci_is_bridge(dev) && !dev->driver &&
641+
acpi_target_system_state() != ACPI_STATE_S0)
642+
return true;
643+
632644
if (!adev || !acpi_device_power_manageable(adev))
633645
return false;
634646

0 commit comments

Comments
 (0)