drm/amd/display: delay 100ms before restart after failing to read CP_IRQ
authorWenjing Liu <wenjing.liu@amd.com>
Mon, 17 May 2021 19:54:19 +0000 (15:54 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 8 Jun 2021 16:15:54 +0000 (12:15 -0400)
commit416b4e7596fa8cbe47f94f53009e252acfd36ece
tree4550ee21d620fb96a23fa7f0757a056e0bdbf9a0
parentf56c837afce45ec904b23bfd4d7df3e304624972
drm/amd/display: delay 100ms before restart after failing to read CP_IRQ

[why]
Some DPRX will issue CP_IRQ when user disconnects a display
that has been authenticated.
Since display is being disconnecting dpcd read will fail.
This will cause us to attempt HDCP retry on disconnection.
We are adding a 100ms delay before retry.
So we will only start retry if within 100ms there is no disconnection call
to HDCP module.

Signed-off-by: Wenjing Liu <wenjing.liu@amd.com>
Reviewed-by: Nicholas Kazlauskas <Nicholas.Kazlauskas@amd.com>
Acked-by: Stylon Wang <stylon.wang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/modules/hdcp/hdcp2_transition.c