]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Add display only once.
authorBhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Thu, 26 Sep 2019 20:55:24 +0000 (16:55 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 18 Nov 2020 19:36:17 +0000 (14:36 -0500)
commitd0b83c0c11a9a7e868952758a4effed1a63a1a0e
tree1dd8ef7a815eea3641e20bb9c2890f812fa31348
parentbc4c9bc90446588b390950188278f8b0b5998632
drm/amd/display: Add display only once.

[Why]
We call add display multiple times because DESIRED->ENABLED cannot
happen instantaneously. We can't compare the new_state/old_state to
avoid this because on unplug we set the state to DESIRED and on hotplug
the state will still be DESIRED.

[How]
Add a flag to dm_connector_state to keep track of when to enable or
disable HDCP

Signed-off-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Reviewed-by: Zhan Liu <zhan.liu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h