]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu/display: clean up hdcp workqueue handling
authorAlex Deucher <alexander.deucher@amd.com>
Tue, 18 Feb 2020 18:20:30 +0000 (13:20 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 26 Feb 2020 19:20:41 +0000 (14:20 -0500)
commit9c0ec69415124e4dac05f974cb5e86a07ef7719e
treed203471ba1825c899f867a04436509b36ca0c9bd
parent2bcf5c396b350e31d61204b63a783964f4f75612
drm/amdgpu/display: clean up hdcp workqueue handling

Use the existence of the workqueue itself to determine when to
enable HDCP features rather than sprinkling asic checks all over
the code.  Also add a check for the existence of the hdcp
workqueue in the irq handling on the off chance we get and HPD
RX interrupt with the CP bit set.  This avoids a crash if
the driver doesn't support HDCP for a particular asic.

Fixes: f2f8b3bd1e63b8 ("drm/amd/display: only enable HDCP for DCN+")
Bug: https://bugzilla.kernel.org/show_bug.cgi?id=206519
Reviewed-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c