drm/amd/display: Add hpd pending flag to indicate detection of new hpd
authorMeenakshikumar Somasundaram <meenakshikumar.somasundaram@amd.com>
Thu, 4 Nov 2021 20:52:09 +0000 (16:52 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 17 Nov 2021 21:58:09 +0000 (16:58 -0500)
commit6ef86fa8ccc8a3200fc89e8c9b50f1b90144b65c
treef796ced95ab7b9e992c53788ef6ef6e7cdbd7481
parent095041dbfa03a193c7e76c00b0cdd1cfcd45869e
drm/amd/display: Add hpd pending flag to indicate detection of new hpd

[Why]
For dpia link, link->hpd_status indicates current state, but driver
fails to capture hpd transitions in certain scenarios such as during
link training.

[How]
Added link->hpd_pending flag that captures arrival of new hpd.

Reviewed-by: Jun Lei <Jun.Lei@amd.com>
Acked-by: Anson Jacob <Anson.Jacob@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Meenakshikumar Somasundaram <meenakshikumar.somasundaram@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_link.c
drivers/gpu/drm/amd/display/dc/core/dc_link_dpia.c
drivers/gpu/drm/amd/display/dc/dc_link.h