File tree Expand file tree Collapse file tree 1 file changed +6
-12
lines changed
drivers/gpu/drm/xe/display Expand file tree Collapse file tree 1 file changed +6
-12
lines changed Original file line number Diff line number Diff line change @@ -321,14 +321,11 @@ void xe_display_pm_suspend(struct xe_device *xe, bool runtime)
321
321
*/
322
322
intel_power_domains_disable (xe );
323
323
intel_fbdev_set_suspend (& xe -> drm , FBINFO_STATE_SUSPENDED , true);
324
- if (has_display (xe )) {
324
+ if (! runtime && has_display (xe )) {
325
325
drm_kms_helper_poll_disable (& xe -> drm );
326
- if (!runtime )
327
- intel_display_driver_disable_user_access (xe );
328
- }
329
-
330
- if (!runtime )
326
+ intel_display_driver_disable_user_access (xe );
331
327
intel_display_driver_suspend (xe );
328
+ }
332
329
333
330
xe_display_flush_cleanup_work (xe );
334
331
@@ -387,15 +384,12 @@ void xe_display_pm_resume(struct xe_device *xe, bool runtime)
387
384
388
385
/* MST sideband requires HPD interrupts enabled */
389
386
intel_dp_mst_resume (xe );
390
- if (!runtime )
387
+ if (!runtime && has_display ( xe )) {
391
388
intel_display_driver_resume (xe );
392
-
393
- if (has_display (xe )) {
394
389
drm_kms_helper_poll_enable (& xe -> drm );
395
- if (! runtime )
396
- intel_display_driver_enable_user_access (xe );
390
+ intel_display_driver_enable_user_access ( xe );
391
+ intel_hpd_poll_disable (xe );
397
392
}
398
- intel_hpd_poll_disable (xe );
399
393
400
394
intel_opregion_resume (display );
401
395
You can’t perform that action at this time.
0 commit comments