drm/i915: Make intel_display_suspend atomic, v2.
Calculate all state using a normal transition, but afterwards fudge crtc->state->active back to its old value. This should still allow state restore in setup_hw_state to work properly. Calling intel_set_mode will cause intel_display_set_init_power to be called, make sure init_power gets set again afterwards. Changes since v1: - Fix to compile with v2 of the patch that adds intel_display_suspend. - Add intel_display_set_init_power. - Set return value to int to allow error checking. Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com> Reviewed-by: Matt Roper <matthew.d.roper@intel.com> Signed-off-by: Jani Nikula <jani.nikula@intel.com>
This commit is contained in:

committed by
Jani Nikula

parent
5da76e94c4
commit
06ea0b0897
@@ -634,6 +634,9 @@ static int i915_drm_suspend(struct drm_device *dev)
|
||||
intel_display_suspend(dev);
|
||||
drm_modeset_unlock_all(dev);
|
||||
|
||||
/* suspending displays will unsets init power */
|
||||
intel_display_set_init_power(dev_priv, true);
|
||||
|
||||
intel_dp_mst_suspend(dev);
|
||||
|
||||
intel_runtime_pm_disable_interrupts(dev_priv);
|
||||
|
Reference in New Issue
Block a user