drm/amd/display: Modify the hdcp device count check condition
authorMartin Tsai <martin.tsai@amd.com>
Thu, 3 Dec 2020 02:47:11 +0000 (10:47 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 23 Dec 2020 20:01:34 +0000 (15:01 -0500)
commitc2d61e309171437e042f4c859e88077fffee18e5
tree2c749f2c55ef3f42cab75abb54616b2b5aa47b3b
parent2da94e2808bd7df30ace134991ed0fbd95188acd
drm/amd/display: Modify the hdcp device count check condition

[why]
Some MST display may not report the internal panel to DEVICE_COUNT,
that makes the check condition always failed.

[how]
To update this condition with the reported device count + 1
(because the immediate repeater's internal panel is possibly
not included in DEVICE_COUNT)

Signed-off-by: Martin Tsai <martin.tsai@amd.com>
Acked-by: Bindu Ramamurthy <bindu.r@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