drm/amd/display: avoid to authentication when DEVICE_COUNT=0
authorYu-ting Shen <Yu-ting.Shen@amd.com>
Wed, 14 Apr 2021 07:33:33 +0000 (15:33 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 29 Apr 2021 03:35:50 +0000 (23:35 -0400)
commit088bebc79ee8c5ee9d61fa0381af278d5ff7da45
tree0e5aa0da6bde9ec6f190b65a71168b9d78213103
parent642d3a2bf234578da83ed1fb6ef87dba36d31dea
drm/amd/display: avoid to authentication when DEVICE_COUNT=0

[why]
we don't support authentication with DEVICE_COUNT=0

[how]
check value DEVICE_COUNT before doing authentication

Signed-off-by: Yu-ting Shen <Yu-ting.Shen@amd.com>
Reviewed-by: Wenjing Liu <Wenjing.Liu@amd.com>
Acked-by: Wayne Lin <waynelin@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/modules/hdcp/hdcp1_execution.c
drivers/gpu/drm/amd/display/modules/hdcp/hdcp2_execution.c