]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Refactor HDCP encryption status update
authorBhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Wed, 4 Sep 2019 20:52:20 +0000 (16:52 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 19 Nov 2019 15:12:53 +0000 (10:12 -0500)
commit7fe8dd84fca1ad67d6e4c8e4f00576dc12cd2e13
treeb72f61425eed97a326fe3c9b8b20bf746ad6efc8
parent4875d711fc7d0145201cc5ba55126bf205fd717e
drm/amd/display: Refactor HDCP encryption status update

[Why]
The old way was to poll PSP and update the properties. But due to a
limitation in the PSP interface this doesn't work for MST.

[How]
According to PSP if set_encryption return success, the link is encrypted
and the only way it will not be is if we get a link loss(which we handle
already).

So this method should be good enough to report HDCP status.

Signed-off-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_hdcp.c
drivers/gpu/drm/amd/display/modules/hdcp/hdcp.c
drivers/gpu/drm/amd/display/modules/inc/mod_hdcp.h