drm/amd/display: Skip create new stream if crtc state doesn't change
authorJerry (Fangzhi) Zuo <Jerry.Zuo@amd.com>
Fri, 11 Jan 2019 21:34:31 +0000 (16:34 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 25 Jan 2019 21:15:34 +0000 (16:15 -0500)
commit02d35a67f498f661b282d8e4175ea6f80fedde82
tree0ce2628fa051cdb038808ea98ef30a95b211ce1c
parent2172b89e7c94605380d8c0dedf543c93f0a0b27c
drm/amd/display: Skip create new stream if crtc state doesn't change

Need to check if crtc state is changed so that mode set is
required before trying to create new stream.

It deals with the MST hotplug use case when plug back to the
same connector where the failure to create new stream for the
inactive crtc on the old connector.

Signed-off-by: Jerry (Fangzhi) Zuo <Jerry.Zuo@amd.com>
Reviewed-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c