Skip to content

Commit d8e79b5

Browse files
committed
[Not for upstream] drm/xe: add DPM_FLAG_SMART_SUSPEND
With commit: bca84a7 ("PM: sleep: Use DPM_FLAG_SMART_SUSPEND conditionally"), DPM_FLAG_SMART_SUSPEND will only be used when the devices parent and suppliers are all with the "smart suspend" feature enabled. The feature is needed for Intel SoundWire links, SOF PCI device is its parent and XE PCI is SOF PCI's link supplier. Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
1 parent b9d2390 commit d8e79b5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/gpu/drm/xe/xe_pci.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -860,6 +860,8 @@ static int xe_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
860860
if (err)
861861
goto err_driver_cleanup;
862862

863+
dev_pm_set_driver_flags(&pdev->dev, DPM_FLAG_SMART_SUSPEND);
864+
863865
drm_dbg(&xe->drm, "d3cold: capable=%s\n",
864866
str_yes_no(xe->d3cold.capable));
865867

0 commit comments

Comments
 (0)