提交 a7b06724 编写于 作者: B Bhawanpreet Lakha 提交者: Alex Deucher

drm/amd/display: Fix comment placement for when new_stream is null

Signed-off-by: NBhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Reviewed-by: NHarry Wentland <Harry.Wentland@amd.com>
Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
上级 497de04f
...@@ -4603,6 +4603,13 @@ int amdgpu_dm_atomic_check(struct drm_device *dev, ...@@ -4603,6 +4603,13 @@ int amdgpu_dm_atomic_check(struct drm_device *dev,
&crtc_state->mode, &crtc_state->mode,
dm_conn_state); dm_conn_state);
/*
* we can have no stream on ACTION_SET if a display
* was disconnected during S3, in this case it not and
* error, the OS will be updated after detection, and
* do the right thing on next atomic commit
*/
if (!new_stream) { if (!new_stream) {
DRM_DEBUG_KMS("%s: Failed to create new stream for crtc %d\n", DRM_DEBUG_KMS("%s: Failed to create new stream for crtc %d\n",
__func__, acrtc->base.base.id); __func__, acrtc->base.base.id);
...@@ -4615,14 +4622,6 @@ int amdgpu_dm_atomic_check(struct drm_device *dev, ...@@ -4615,14 +4622,6 @@ int amdgpu_dm_atomic_check(struct drm_device *dev,
if (modeset_required(crtc_state, new_stream, if (modeset_required(crtc_state, new_stream,
old_acrtc_state->stream)) { old_acrtc_state->stream)) {
/*
* we can have no stream on ACTION_SET if a display
* was disconnected during S3, in this case it not and
* error, the OS will be updated after detection, and
* do the right thing on next atomic commit
*/
if (new_acrtc_state->stream) if (new_acrtc_state->stream)
dc_stream_release(new_acrtc_state->stream); dc_stream_release(new_acrtc_state->stream);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册